aboutsummaryrefslogtreecommitdiffstats
path: root/bcel-builder
diff options
context:
space:
mode:
authoraclement <aclement>2008-08-26 15:00:19 +0000
committeraclement <aclement>2008-08-26 15:00:19 +0000
commit61134f98ab6f2a227b2057b2c002908112f18243 (patch)
tree01becc0d2df77335b7badc036d247059e6acc3b8 /bcel-builder
parentb8aaf878584d3d591a05181f3e9f5cd1bfa2970d (diff)
downloadaspectj-61134f98ab6f2a227b2057b2c002908112f18243.tar.gz
aspectj-61134f98ab6f2a227b2057b2c002908112f18243.zip
dont double initialize
Diffstat (limited to 'bcel-builder')
-rw-r--r--bcel-builder/src/org/aspectj/apache/bcel/classfile/GenericSignatureParser.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/bcel-builder/src/org/aspectj/apache/bcel/classfile/GenericSignatureParser.java b/bcel-builder/src/org/aspectj/apache/bcel/classfile/GenericSignatureParser.java
index fe45f28da..8717bf4bb 100644
--- a/bcel-builder/src/org/aspectj/apache/bcel/classfile/GenericSignatureParser.java
+++ b/bcel-builder/src/org/aspectj/apache/bcel/classfile/GenericSignatureParser.java
@@ -73,9 +73,7 @@ public class GenericSignatureParser {
tokenStream = tokenize(sig);
tokenIndex = 0;
FormalTypeParameter[] formals = new FormalTypeParameter[0];
- TypeSignature[] params = new TypeSignature[0];
TypeSignature returnType = null;
- FieldTypeSignature[] throwsSigs = new FieldTypeSignature[0];
// FormalTypeParameters-opt
if (maybeEat("<")) {
List formalTypeParametersList = new ArrayList();
@@ -96,7 +94,7 @@ public class GenericSignatureParser {
paramList.add(new Signature.BaseTypeSignature(eatIdentifier()));
}
}
- params = new TypeSignature[paramList.size()];
+ TypeSignature[] params = new TypeSignature[paramList.size()];
paramList.toArray(params);
// return type
returnType = parseFieldTypeSignature(true);
@@ -107,7 +105,7 @@ public class GenericSignatureParser {
FieldTypeSignature fsig = parseFieldTypeSignature(false);
throwsList.add(fsig);
}
- throwsSigs = new FieldTypeSignature[throwsList.size()];
+ FieldTypeSignature[] throwsSigs = new FieldTypeSignature[throwsList.size()];
throwsList.toArray(throwsSigs);
return new Signature.MethodTypeSignature(formals,params,returnType,throwsSigs);
}