aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraclement <aclement>2008-06-23 02:07:52 +0000
committeraclement <aclement>2008-06-23 02:07:52 +0000
commitd5fd87c305631713c32303864f2758e6c3bab151 (patch)
tree8aeb788960d316433fe3b01fc125e04d9a57e160
parentc19df6f710ed03f956224e3d4a57610e7a50bb71 (diff)
downloadaspectj-d5fd87c305631713c32303864f2758e6c3bab151.tar.gz
aspectj-d5fd87c305631713c32303864f2758e6c3bab151.zip
MEMORY: Don't create unnecessary empty lists
-rw-r--r--weaver/src/org/aspectj/weaver/bcel/UnwovenClassFile.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/weaver/src/org/aspectj/weaver/bcel/UnwovenClassFile.java b/weaver/src/org/aspectj/weaver/bcel/UnwovenClassFile.java
index 697124151..7e43d465d 100644
--- a/weaver/src/org/aspectj/weaver/bcel/UnwovenClassFile.java
+++ b/weaver/src/org/aspectj/weaver/bcel/UnwovenClassFile.java
@@ -17,7 +17,6 @@ import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FilenameFilter;
import java.io.IOException;
-import java.util.ArrayList;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
@@ -31,7 +30,7 @@ public class UnwovenClassFile {
protected byte[] bytes;
// protected JavaClass javaClass = null;
//protected byte[] writtenBytes = null;
- protected List /* ChildClass */ writtenChildClasses = new ArrayList(0);
+ protected List /* ChildClass */ writtenChildClasses = Collections.EMPTY_LIST;
protected String className = null;
public UnwovenClassFile(String filename, byte[] bytes) {