Author: markt Date: Wed Sep 10 22:19:00 2014 New Revision: 1624152 URL: http://svn.apache.org/r1624152 Log: Remove unused code (ConstantMethodType)
Removed: tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/ConstantMethodType.java Modified: tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/Constant.java tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/Utility.java Modified: tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/Constant.java URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/Constant.java?rev=1624152&r1=1624151&r2=1624152&view=diff ============================================================================== --- tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/Constant.java (original) +++ tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/Constant.java Wed Sep 10 22:19:00 2014 @@ -122,7 +122,8 @@ public abstract class Constant implement Utility.swallowConstantMethodHandle(file); return null; case Constants.CONSTANT_MethodType: - return new ConstantMethodType(file); + Utility.swallowConstantMethodType(file); + return null; case Constants.CONSTANT_InvokeDynamic: return new ConstantInvokeDynamic(file); default: 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=1624152&r1=1624151&r2=1624152&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 22:19:00 2014 @@ -286,4 +286,8 @@ final class Utility { file.readUnsignedShort(); // Unused name index file.readUnsignedShort(); // Unused signature index } + + static void swallowConstantMethodType(DataInput file) throws IOException { + file.readUnsignedShort(); // Unused descriptor_index + } } --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org