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:03:28 UTC
svn commit: r1624132 - in
/tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile: Attribute.java
LocalVariableTypeTable.java Utility.java
Author: markt
Date: Wed Sep 10 21:03:28 2014
New Revision: 1624132
URL: http://svn.apache.org/r1624132
Log:
Remove unused code (LocalVariableTypeTable)
Removed:
tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/LocalVariableTypeTable.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=1624132&r1=1624131&r2=1624132&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:03:28 2014
@@ -145,8 +145,8 @@ public abstract class Attribute implemen
return new AnnotationDefault(name_index, length, file,
constant_pool);
case Constants.ATTR_LOCAL_VARIABLE_TYPE_TABLE:
- return new LocalVariableTypeTable(name_index, length, file,
- constant_pool);
+ Utility.swallowLocalVariableTypeTable(file);
+ return null;
case Constants.ATTR_ENCLOSING_METHOD:
return new EnclosingMethod(name_index, length, file, constant_pool);
case Constants.ATTR_STACK_MAP_TABLE:
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=1624132&r1=1624131&r2=1624132&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:03:28 2014
@@ -238,6 +238,13 @@ final class Utility {
}
}
+ static void swallowLocalVariableTypeTable(DataInput file) throws IOException {
+ int local_variable_type_table_length = (file.readUnsignedShort());
+ for(int i=0; i < local_variable_type_table_length; i++) {
+ Utility.swallowLocalVariable(file);
+ }
+ }
+
static void swallowInnerClasses(DataInput file) throws IOException {
int number_of_classes = file.readUnsignedShort();
for (int i = 0; i < number_of_classes; i++) {
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org