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 2014/09/10 23:05:38 UTC

svn commit: r1624133 - in /tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile: Attribute.java EnclosingMethod.java Utility.java

Author: markt
Date: Wed Sep 10 21:05:38 2014
New Revision: 1624133

URL: http://svn.apache.org/r1624133
Log:
Remove unused code (EnclosingMethod)

Removed:
    tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/EnclosingMethod.java
Modified:
    tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/Attribute.java
    tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/Utility.java

Modified: tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/Attribute.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/Attribute.java?rev=1624133&r1=1624132&r2=1624133&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/Attribute.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/Attribute.java Wed Sep 10 21:05:38 2014
@@ -148,7 +148,8 @@ public abstract class Attribute implemen
             Utility.swallowLocalVariableTypeTable(file);
             return null;
         case Constants.ATTR_ENCLOSING_METHOD:
-            return new EnclosingMethod(name_index, length, file, constant_pool);
+            Utility.swallowEnclosingMethod(file);
+            return null;
         case Constants.ATTR_STACK_MAP_TABLE:
             Utility.swallowStackMapTable(file);
             return null;

Modified: tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/Utility.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/Utility.java?rev=1624133&r1=1624132&r2=1624133&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/Utility.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/Utility.java Wed Sep 10 21:05:38 2014
@@ -262,4 +262,9 @@ final class Utility {
         file.readUnsignedShort();   // Unused pmg_index
         file.readUnsignedShort();   // Unused pmg_class_index
     }
+
+    static void swallowEnclosingMethod(DataInput file) throws IOException {
+        file.readUnsignedShort();   // Unused class index
+        file.readUnsignedShort();   // Unused method index
+    }
 }



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