This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 223094 - Use List.nil() where possible
Summary: Use List.nil() where possible
Alias: None
Product: java
Classification: Unclassified
Component: Compiler (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: Dusan Balek
Depends on:
Reported: 2012-12-01 07:37 UTC by Tomas Hurka
Modified: 2012-12-14 02:42 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Hurka 2012-12-01 07:37:51 UTC
It looks like there are several cases, where List.nil() is not used. Example is$JCMethodInvocation.args list. This can save some memory especially in cases, where a lot of sources are parsed.
Comment 1 Tomas Hurka 2012-12-01 09:10:45 UTC
It looks like ListBuffer is creating this empty List instances.
Comment 3 Quality Engineering 2012-12-14 02:42:29 UTC
Integrated into 'main-golden', will be available in build *201212140001* on (upload may still be in progress)
User: Jan Lahoda <>
Log: #223094: updating nb-javac, to incorporate ListBuffer optimization