From 61134f98ab6f2a227b2057b2c002908112f18243 Mon Sep 17 00:00:00 2001 From: aclement Date: Tue, 26 Aug 2008 15:00:19 +0000 Subject: [PATCH] dont double initialize --- .../apache/bcel/classfile/GenericSignatureParser.java | 6 ++---- 1 file 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); } -- 2.39.5