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
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Compiler (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
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:


Attachments

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 com.sun.tools.javac.tree.JCTree$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 http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/65fac4a3f53a
User: Jan Lahoda <jlahoda@netbeans.org>
Log: #223094: updating nb-javac, to incorporate ListBuffer optimization