Author: markt
Date: Sat Nov 9 19:48:30 2013
New Revision: 1540383
URL: http://svn.apache.org/r1540383
Log:
Simplify (remove unused code)
Modified:
tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/StackMapTable.java
Modified:
tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/StackMapTable.java
URL:
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/StackMapTable.java?rev=1540383&r1=1540382&r2=1540383&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/StackMapTable.java
(original)
+++ tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/StackMapTable.java
Sat Nov 9 19:48:30 2013
@@ -38,20 +38,8 @@ import java.io.IOException;
public final class StackMapTable extends Attribute {
private static final long serialVersionUID = -2931695092763099621L;
- private int map_length;
- private StackMapTableEntry[] map; // Table of stack map entries
-
-
- /*
- * @param name_index Index of name
- * @param length Content length in bytes
- * @param map Table of stack map entries
- * @param constant_pool Array of constants
- */
- public StackMapTable(int name_index, int length, StackMapTableEntry[] map,
ConstantPool constant_pool) {
- super(name_index, length, constant_pool);
- setStackMapTable(map);
- }
+ private final int map_length;
+ private final StackMapTableEntry[] map; // Table of stack map entries
/**
@@ -64,20 +52,11 @@ public final class StackMapTable extends
*/
StackMapTable(int name_index, int length, DataInputStream file,
ConstantPool constant_pool)
throws IOException {
- this(name_index, length, (StackMapTableEntry[]) null, constant_pool);
+ super(name_index, length, constant_pool);
map_length = file.readUnsignedShort();
map = new StackMapTableEntry[map_length];
for (int i = 0; i < map_length; i++) {
map[i] = new StackMapTableEntry(file);
}
}
-
-
- /**
- * @param map Array of stack map entries
- */
- public final void setStackMapTable( StackMapTableEntry[] map ) {
- this.map = map;
- map_length = (map == null) ? 0 : map.length;
- }
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]