From e063b0d6c3e86a44c16319c543f4863cf52f77cf Mon Sep 17 00:00:00 2001 From: aclement Date: Thu, 28 Aug 2008 00:02:35 +0000 Subject: [PATCH] chewed by formatter --- .../apache/bcel/generic/InstructionByte.java | 56 +++++++++++-------- 1 file changed, 33 insertions(+), 23 deletions(-) diff --git a/bcel-builder/src/org/aspectj/apache/bcel/generic/InstructionByte.java b/bcel-builder/src/org/aspectj/apache/bcel/generic/InstructionByte.java index d0611306c..fcd46dc9f 100644 --- a/bcel-builder/src/org/aspectj/apache/bcel/generic/InstructionByte.java +++ b/bcel-builder/src/org/aspectj/apache/bcel/generic/InstructionByte.java @@ -1,5 +1,3 @@ -package org.aspectj.apache.bcel.generic; - /* ==================================================================== * The Apache Software License, Version 1.1 * @@ -53,34 +51,46 @@ package org.aspectj.apache.bcel.generic; * information on the Apache Software Foundation, please see * . */ +package org.aspectj.apache.bcel.generic; -import java.io.*; - +import java.io.DataOutputStream; +import java.io.IOException; -/** +/** * Instruction that needs one byte */ public class InstructionByte extends Instruction { - private byte b; + private final byte theByte; + + public InstructionByte(short opcode, byte b) { + super(opcode); + this.theByte = b; + } - public InstructionByte(short opcode, byte b) { - this.opcode = opcode; - this.b = b; - } - - public void dump(DataOutputStream out) throws IOException { - out.writeByte(opcode); - out.writeByte(b); - } + public void dump(DataOutputStream out) throws IOException { + out.writeByte(opcode); + out.writeByte(theByte); + } - public String toString(boolean verbose) { - return super.toString(verbose) + " " + b; - } - - public final byte getTypecode() { return b; } // NEWARRAY + public String toString(boolean verbose) { + return super.toString(verbose) + " " + theByte; + } + + /** + * For supporting NEWARRAY + * + * @return typecode of the array + */ + public final byte getTypecode() { + return theByte; + } - // NEWARRAY + /** + * For supporting NEWARRAY + * + * @return type of the array + */ public final Type getType() { - return new ArrayType(BasicType.getType(b), 1); + return new ArrayType(BasicType.getType(theByte), 1); } -} +} \ No newline at end of file -- 2.39.5