--- old/src/java.xml/share/classes/com/sun/org/apache/bcel/internal/classfile/Code.java 2020-01-16 18:00:23.045890755 +0000 +++ new/src/java.xml/share/classes/com/sun/org/apache/bcel/internal/classfile/Code.java 2020-01-16 18:00:22.554878600 +0000 @@ -39,7 +39,6 @@ * is used for debugging purposes and LocalVariableTable which * contains information about the local variables. * - * @version $Id$ * @see Attribute * @see CodeException * @see LineNumberTable @@ -144,7 +143,7 @@ * @throws IOException */ @Override - public final void dump( final DataOutputStream file ) throws IOException { + public void dump( final DataOutputStream file ) throws IOException { super.dump(file); file.writeShort(max_stack); file.writeShort(max_locals); @@ -165,7 +164,7 @@ * @return Collection of code attributes. * @see Attribute */ - public final Attribute[] getAttributes() { + public Attribute[] getAttributes() { return attributes; } @@ -199,7 +198,7 @@ /** * @return Actual byte code of the method. */ - public final byte[] getCode() { + public byte[] getCode() { return code; } @@ -208,7 +207,7 @@ * @return Table of handled exceptions. * @see CodeException */ - public final CodeException[] getExceptionTable() { + public CodeException[] getExceptionTable() { return exception_table; } @@ -216,7 +215,7 @@ /** * @return Number of local variables. */ - public final int getMaxLocals() { + public int getMaxLocals() { return max_locals; } @@ -224,7 +223,7 @@ /** * @return Maximum size of stack used by this method. */ - public final int getMaxStack() { + public int getMaxStack() { return max_stack; } @@ -260,7 +259,7 @@ /** * @param attributes the attributes to set for this Code */ - public final void setAttributes( final Attribute[] attributes ) { + public void setAttributes( final Attribute[] attributes ) { this.attributes = attributes != null ? attributes : new Attribute[0]; super.setLength(calculateLength()); // Adjust length } @@ -269,7 +268,7 @@ /** * @param code byte code */ - public final void setCode( final byte[] code ) { + public void setCode( final byte[] code ) { this.code = code != null ? code : new byte[0]; super.setLength(calculateLength()); // Adjust length } @@ -278,7 +277,7 @@ /** * @param exception_table exception table */ - public final void setExceptionTable( final CodeException[] exception_table ) { + public void setExceptionTable( final CodeException[] exception_table ) { this.exception_table = exception_table != null ? exception_table : new CodeException[0]; super.setLength(calculateLength()); // Adjust length } @@ -287,7 +286,7 @@ /** * @param max_locals maximum number of local variables */ - public final void setMaxLocals( final int max_locals ) { + public void setMaxLocals( final int max_locals ) { this.max_locals = max_locals; } @@ -295,7 +294,7 @@ /** * @param max_stack maximum stack size */ - public final void setMaxStack( final int max_stack ) { + public void setMaxStack( final int max_stack ) { this.max_stack = max_stack; } @@ -303,7 +302,7 @@ /** * @return String representation of code chunk. */ - public final String toString( final boolean verbose ) { + public String toString( final boolean verbose ) { final StringBuilder buf = new StringBuilder(100); // CHECKSTYLE IGNORE MagicNumber buf.append("Code(max_stack = ").append(max_stack).append(", max_locals = ").append( max_locals).append(", code_length = ").append(code.length).append(")\n").append( @@ -328,7 +327,7 @@ * @return String representation of code chunk. */ @Override - public final String toString() { + public String toString() { return toString(true); }