Author: markt
Date: Sat Nov 9 21:44:55 2013
New Revision: 1540412
URL: http://svn.apache.org/r1540412
Log:
Merge constructors
Modified:
tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/Synthetic.java
Modified: tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/Synthetic.java
URL:
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/Synthetic.java?rev=1540412&r1=1540411&r2=1540412&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/Synthetic.java
(original)
+++ tomcat/trunk/java/org/apache/tomcat/util/bcel/classfile/Synthetic.java Sat
Nov 9 21:44:55 2013
@@ -36,21 +36,6 @@ import java.io.IOException;
public final class Synthetic extends Attribute {
private static final long serialVersionUID = -5129612853226360165L;
- private byte[] bytes;
-
-
- /**
- * @param name_index Index in constant pool to CONSTANT_Utf8, which
- * should represent the string "Synthetic".
- * @param length Content length in bytes - should be zero.
- * @param bytes Attribute contents
- * @param constant_pool The constant pool this attribute is associated
- * with.
- */
- public Synthetic(int name_index, int length, byte[] bytes, ConstantPool
constant_pool) {
- super(name_index, length, constant_pool);
- this.bytes = bytes;
- }
/**
@@ -63,11 +48,11 @@ public final class Synthetic extends Att
*/
Synthetic(int name_index, int length, DataInputStream file, ConstantPool
constant_pool)
throws IOException {
- this(name_index, length, (byte[]) null, constant_pool);
+ super(name_index, length, constant_pool);
if (length > 0) {
- bytes = new byte[length];
+ byte[] bytes = new byte[length];
file.readFully(bytes);
- System.err.println("Synthetic attribute with length > 0");
+ throw new ClassFormatException("Synthetic attribute with length >
0");
}
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]