You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2012/10/14 02:46:15 UTC
svn commit: r1397980 -
/tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/StackMapEntry.java
Author: markt
Date: Sun Oct 14 00:46:14 2012
New Revision: 1397980
URL: http://svn.apache.org/viewvc?rev=1397980&view=rev
Log:
Fix unused parameter warning
Modified:
tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/StackMapEntry.java
Modified: tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/StackMapEntry.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/StackMapEntry.java?rev=1397980&r1=1397979&r2=1397980&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/StackMapEntry.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/StackMapEntry.java Sun Oct 14 00:46:14 2012
@@ -47,7 +47,10 @@ public final class StackMapEntry impleme
* @throws IOException
*/
StackMapEntry(DataInputStream file) throws IOException {
- this(file.readShort(), file.readShort(), null, -1, null);
+ file.readShort(); // Unused byte_code_offset
+ number_of_locals = file.readShort();
+ types_of_locals = null;
+ types_of_stack_items = null;
types_of_locals = new StackMapType[number_of_locals];
for (int i = 0; i < number_of_locals; i++) {
types_of_locals[i] = new StackMapType(file);
@@ -60,16 +63,6 @@ public final class StackMapEntry impleme
}
- public StackMapEntry(int byte_code_offset, int number_of_locals,
- StackMapType[] types_of_locals, int number_of_stack_items,
- StackMapType[] types_of_stack_items) {
- this.number_of_locals = number_of_locals;
- this.types_of_locals = types_of_locals;
- this.number_of_stack_items = number_of_stack_items;
- this.types_of_stack_items = types_of_stack_items;
- }
-
-
/**
* @return deep copy of this object
*/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org