This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-bcel.git
commit d6fa48b67b691a502cb9696e451944546fc47288 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Mon Apr 1 10:31:26 2024 -0400 Remove whitespace --- .../java/org/apache/bcel/classfile/LocalVariableTypeTable.java | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/main/java/org/apache/bcel/classfile/LocalVariableTypeTable.java b/src/main/java/org/apache/bcel/classfile/LocalVariableTypeTable.java index 8a35c6ea..bb8e1f08 100644 --- a/src/main/java/org/apache/bcel/classfile/LocalVariableTypeTable.java +++ b/src/main/java/org/apache/bcel/classfile/LocalVariableTypeTable.java @@ -64,10 +64,8 @@ public class LocalVariableTypeTable extends Attribute implements Iterable<LocalV LocalVariableTypeTable(final int nameIdx, final int len, final DataInput input, final ConstantPool cpool) throws IOException { this(nameIdx, len, (LocalVariable[]) null, cpool); - final int localVariableTypeTableLength = input.readUnsignedShort(); localVariableTypeTable = new LocalVariable[localVariableTypeTableLength]; - for (int i = 0; i < localVariableTypeTableLength; i++) { localVariableTypeTable[i] = new LocalVariable(input, cpool); } @@ -94,7 +92,6 @@ public class LocalVariableTypeTable extends Attribute implements Iterable<LocalV @Override public Attribute copy(final ConstantPool constantPool) { final LocalVariableTypeTable c = (LocalVariableTypeTable) clone(); - c.localVariableTypeTable = new LocalVariable[localVariableTypeTable.length]; Arrays.setAll(c.localVariableTypeTable, i -> localVariableTypeTable[i].copy()); c.setConstantPool(constantPool); @@ -116,7 +113,6 @@ public class LocalVariableTypeTable extends Attribute implements Iterable<LocalV return variable; } } - return null; } @@ -143,15 +139,12 @@ public class LocalVariableTypeTable extends Attribute implements Iterable<LocalV @Override public final String toString() { final StringBuilder buf = new StringBuilder(); - for (int i = 0; i < localVariableTypeTable.length; i++) { buf.append(localVariableTypeTable[i].toStringShared(true)); - if (i < localVariableTypeTable.length - 1) { buf.append('\n'); } } - return buf.toString(); } }