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

Summary: Use List.nil() where possible
Product: java Reporter: Tomas Hurka <thurka>
Component: CompilerAssignee: Dusan Balek <dbalek>
Status: RESOLVED FIXED    
Severity: normal Keywords: PERFORMANCE
Priority: P3    
Version: 7.3   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

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