From: aclement Date: Tue, 26 Aug 2008 15:00:19 +0000 (+0000) Subject: dont double initialize X-Git-Tag: V162DEV_M1~39 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=61134f98ab6f2a227b2057b2c002908112f18243;p=aspectj.git dont double initialize --- 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); }