Author: markt
Date: Sat Nov  9 19:52:26 2013
New Revision: 1540384

URL: http://svn.apache.org/r1540384
Log:
Simplify - merge unused constructor into used constructor

Modified:
    
tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/StackMapTableEntry.java

Modified: 
tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/StackMapTableEntry.java
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/StackMapTableEntry.java?rev=1540384&r1=1540383&r2=1540384&view=diff
==============================================================================
--- 
tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/StackMapTableEntry.java 
(original)
+++ 
tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/StackMapTableEntry.java 
Sat Nov  9 19:52:26 2013
@@ -50,7 +50,11 @@ public final class StackMapTableEntry im
      * @throws IOException
      */
     StackMapTableEntry(DataInputStream file) throws IOException {
-        this(file.read(), -1, null, -1, null);
+        this.frame_type = file.read();
+        this.number_of_locals = -1;
+        this.types_of_locals = null;
+        this.number_of_stack_items = -1;
+        this.types_of_stack_items = null;
 
         if (frame_type >= Constants.SAME_FRAME && frame_type <= 
Constants.SAME_FRAME_MAX) {
             // NO-OP
@@ -91,15 +95,4 @@ public final class StackMapTableEntry im
             throw new ClassFormatException ("Invalid frame type found while 
parsing stack map table: " + frame_type);
         }
     }
-
-
-    public StackMapTableEntry(int tag, int number_of_locals,
-            StackMapType[] types_of_locals, int number_of_stack_items,
-            StackMapType[] types_of_stack_items) {
-        this.frame_type = tag;
-        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;
-    }
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to