]> source.dussan.org Git - aspectj.git/commitdiff
303758: fixes
authoraclement <aclement>
Wed, 24 Feb 2010 18:34:16 +0000 (18:34 +0000)
committeraclement <aclement>
Wed, 24 Feb 2010 18:34:16 +0000 (18:34 +0000)
util/src/org/aspectj/util/GenericSignature.java

index 0e2433abd903b1237627ea30b04b37bdb42336e2..bfefc007ea09e908b48c76b97c6839547d9c78dd 100644 (file)
@@ -22,9 +22,9 @@ public class GenericSignature {
         * structure holding a parsed class signature
         */
        public static class ClassSignature {
-               public FormalTypeParameter[] formalTypeParameters = new FormalTypeParameter[0];
+               public FormalTypeParameter[] formalTypeParameters = FormalTypeParameter.NONE;
                public ClassTypeSignature superclassSignature;
-               public ClassTypeSignature[] superInterfaceSignatures = new ClassTypeSignature[0];
+               public ClassTypeSignature[] superInterfaceSignatures = ClassTypeSignature.NONE;
 
                public String toString() {
                        StringBuffer ret = new StringBuffer();
@@ -78,6 +78,7 @@ public class GenericSignature {
         * structure capturing a FormalTypeParameter from the Signature grammar
         */
        public static class FormalTypeParameter {
+               public static final FormalTypeParameter[] NONE = new FormalTypeParameter[0];
                public String identifier;
                public FieldTypeSignature classBound;
                public FieldTypeSignature[] interfaceBounds;
@@ -133,6 +134,8 @@ public class GenericSignature {
        }
 
        public static class ClassTypeSignature extends FieldTypeSignature {
+
+               public static final ClassTypeSignature[] NONE = new ClassTypeSignature[0];
                public String classSignature;
                public SimpleClassTypeSignature outerType;
                public SimpleClassTypeSignature[] nestedTypes;