]> source.dussan.org Git - aspectj.git/commitdiff
MEMORY: Don't create unnecessary empty lists
authoraclement <aclement>
Mon, 23 Jun 2008 02:07:52 +0000 (02:07 +0000)
committeraclement <aclement>
Mon, 23 Jun 2008 02:07:52 +0000 (02:07 +0000)
weaver/src/org/aspectj/weaver/bcel/UnwovenClassFile.java

index 697124151319b3ecc01036323e0f43f96081a4dc..7e43d465dfa5209cecf8de814a476b92380a835c 100644 (file)
@@ -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) {