diff options
author | aclement <aclement> | 2008-06-06 04:24:20 +0000 |
---|---|---|
committer | aclement <aclement> | 2008-06-06 04:24:20 +0000 |
commit | 3948b598c5735c718cb81bc025bcb285df6f7d0f (patch) | |
tree | 0c469a072868ed90121391ca7af8f8736166d18b /bcel-builder | |
parent | 0ea352fe3489ccce570f9dddb6106c18639d43d1 (diff) | |
download | aspectj-3948b598c5735c718cb81bc025bcb285df6f7d0f.tar.gz aspectj-3948b598c5735c718cb81bc025bcb285df6f7d0f.zip |
231396: refactoring AspectJ: useless count field removed and new constants added
Diffstat (limited to 'bcel-builder')
-rw-r--r-- | bcel-builder/src/org/aspectj/apache/bcel/classfile/FieldOrMethod.java | 4 | ||||
-rw-r--r-- | bcel-builder/src/org/aspectj/apache/bcel/generic/Type.java | 9 |
2 files changed, 8 insertions, 5 deletions
diff --git a/bcel-builder/src/org/aspectj/apache/bcel/classfile/FieldOrMethod.java b/bcel-builder/src/org/aspectj/apache/bcel/classfile/FieldOrMethod.java index 48b9fc2d5..37b9afd6f 100644 --- a/bcel-builder/src/org/aspectj/apache/bcel/classfile/FieldOrMethod.java +++ b/bcel-builder/src/org/aspectj/apache/bcel/classfile/FieldOrMethod.java @@ -64,14 +64,13 @@ import java.util.List; /** * Abstract super class for fields and methods. * - * @version $Id: FieldOrMethod.java,v 1.6 2008/05/28 23:53:01 aclement Exp $ + * @version $Id: FieldOrMethod.java,v 1.7 2008/06/06 04:24:20 aclement Exp $ * @author <A HREF="mailto:markus.dahm@berlin.de">M. Dahm</A> */ public abstract class FieldOrMethod extends Modifiers implements Cloneable, Node { protected int nameIndex; protected int signatureIndex; protected Attribute[] attributes; - protected int attributes_count;// No. of attributes protected ConstantPool cpool; private String name; // lazily initialized @@ -111,7 +110,6 @@ public abstract class FieldOrMethod extends Modifiers implements Cloneable, Node */ public void setAttributes(Attribute[] attributes) { this.attributes = attributes; - attributes_count = (attributes == null)? 0 : attributes.length; } diff --git a/bcel-builder/src/org/aspectj/apache/bcel/generic/Type.java b/bcel-builder/src/org/aspectj/apache/bcel/generic/Type.java index efb930059..8014a9ab3 100644 --- a/bcel-builder/src/org/aspectj/apache/bcel/generic/Type.java +++ b/bcel-builder/src/org/aspectj/apache/bcel/generic/Type.java @@ -65,7 +65,7 @@ import org.aspectj.apache.bcel.classfile.Utility; * Abstract super class for all possible java types, namely basic types * such as int, object types like String and array types, e.g. int[] * - * @version $Id: Type.java,v 1.8 2008/05/28 23:52:56 aclement Exp $ + * @version $Id: Type.java,v 1.9 2008/06/06 04:24:20 aclement Exp $ * @author <A HREF="mailto:markus.dahm@berlin.de">M. Dahm</A> * * modified: @@ -92,7 +92,12 @@ public abstract class Type implements java.io.Serializable { public static final Type[] NO_ARGS = new Type[0]; public static final ReferenceType NULL = new ReferenceType(){}; public static final Type UNKNOWN = new Type(Constants.T_UNKNOWN,"<unknown object>"){}; - + public static final Type[] STRINGARRAY1 = new Type[]{STRING}; + public static final Type[] STRINGARRAY2 = new Type[]{STRING,STRING}; + public static final Type[] STRINGARRAY3 = new Type[]{STRING,STRING,STRING}; + public static final Type[] STRINGARRAY4 = new Type[]{STRING,STRING,STRING,STRING}; + public static final Type[] STRINGARRAY5 = new Type[]{STRING,STRING,STRING,STRING,STRING}; + protected Type(byte t, String s) { type = t; signature = s; |