Author: markt Date: Wed Sep 10 20:38:09 2014 New Revision: 1624116 URL: http://svn.apache.org/r1624116 Log: Remove unused code (ExceptionTable)
Removed: tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/ExceptionTable.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=1624116&r1=1624115&r2=1624116&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:38:09 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 ExceptionTable * @see LineNumberTable * @see LocalVariableTable * @see InnerClasses @@ -108,7 +107,8 @@ public abstract class Attribute implemen Utility.swallowCode(file, constant_pool); return null; case Constants.ATTR_EXCEPTIONS: - return new ExceptionTable(name_index, length, file, constant_pool); + Utility.swallowExceptionTable(file); + return null; case Constants.ATTR_LINE_NUMBER_TABLE: return new LineNumberTable(name_index, length, file, constant_pool); case Constants.ATTR_LOCAL_VARIABLE_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=1624116&r1=1624115&r2=1624116&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:38:09 2014 @@ -217,6 +217,12 @@ final class Utility { for (int i = 0; i < attributes_count; i++) { Attribute.readAttribute(file, constant_pool); } + } + static void swallowExceptionTable(DataInput file) throws IOException { + int number_of_exceptions = file.readUnsignedShort(); + for (int i = 0; i < number_of_exceptions; i++) { + file.readUnsignedShort(); // Unused exception index + } } } --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org