From: aclement Date: Mon, 23 Jun 2008 02:07:52 +0000 (+0000) Subject: MEMORY: Don't create unnecessary empty lists X-Git-Tag: V1_6_1rc1~11 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d5fd87c305631713c32303864f2758e6c3bab151;p=aspectj.git MEMORY: Don't create unnecessary empty lists --- 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) {