Author: markt Date: Wed Sep 10 20:41:20 2014 New Revision: 1624119 URL: http://svn.apache.org/r1624119 Log: Remove unused code (LineNumberTable)
Removed: tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/LineNumberTable.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=1624119&r1=1624118&r2=1624119&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 20:41:20 2014 @@ -32,7 +32,6 @@ import org.apache.tomcat.util.bcel.Const * attribute stands for non-standard-attributes. * * @author <A HREF="mailto:m.d...@gmx.de">M. Dahm</A> - * @see LineNumberTable * @see LocalVariableTable * @see InnerClasses * @see Deprecated @@ -110,7 +109,8 @@ public abstract class Attribute implemen Utility.swallowExceptionTable(file); return null; case Constants.ATTR_LINE_NUMBER_TABLE: - return new LineNumberTable(name_index, length, file, constant_pool); + Utility.swallowLineNumberTable(file); + return null; case Constants.ATTR_LOCAL_VARIABLE_TABLE: return new LocalVariableTable(name_index, length, file, constant_pool); 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=1624119&r1=1624118&r2=1624119&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 20:41:20 2014 @@ -225,4 +225,11 @@ final class Utility { file.readUnsignedShort(); // Unused exception index } } + + static void swallowLineNumberTable(DataInput file) throws IOException { + int line_number_table_length = (file.readUnsignedShort()); + for (int i = 0; i < line_number_table_length; i++) { + Utility.swallowLineNumber(file); + } + } } --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org