Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 223094 - Use List.nil() where possible
Use List.nil() where possible
Product: java
Classification: Unclassified
Component: Compiler
All All
: P3 (vote)
: 7.3
Assigned To: Dusan Balek
Depends on:
  Show dependency treegraph
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


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

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo