summaryrefslogtreecommitdiffstats
path: root/bcel-builder
diff options
context:
space:
mode:
authoraclement <aclement>2008-08-28 00:04:13 +0000
committeraclement <aclement>2008-08-28 00:04:13 +0000
commit15d72b921aa6b3119230e3d3fdf51cff88d69ffb (patch)
treefd899b6749d7f8b741255ae7b42767e7e65ebdd6 /bcel-builder
parentfba2c63f65a1f19da3253d10e40ced0e41e0780e (diff)
downloadaspectj-15d72b921aa6b3119230e3d3fdf51cff88d69ffb.tar.gz
aspectj-15d72b921aa6b3119230e3d3fdf51cff88d69ffb.zip
chewed by formatter
Diffstat (limited to 'bcel-builder')
-rw-r--r--bcel-builder/src/org/aspectj/apache/bcel/generic/InstructionShort.java31
1 files changed, 16 insertions, 15 deletions
diff --git a/bcel-builder/src/org/aspectj/apache/bcel/generic/InstructionShort.java b/bcel-builder/src/org/aspectj/apache/bcel/generic/InstructionShort.java
index 08f7854d0..dd8a72eb0 100644
--- a/bcel-builder/src/org/aspectj/apache/bcel/generic/InstructionShort.java
+++ b/bcel-builder/src/org/aspectj/apache/bcel/generic/InstructionShort.java
@@ -54,26 +54,27 @@ package org.aspectj.apache.bcel.generic;
* <http://www.apache.org/>.
*/
-import java.io.*;
+import java.io.DataOutputStream;
+import java.io.IOException;
-/**
+/**
* Instruction that needs one short
*/
public class InstructionShort extends Instruction {
- private short s;
+ private final short s;
- public InstructionShort(short opcode, short s) {
- this.opcode = opcode;
- this.s = s;
- }
-
- public void dump(DataOutputStream out) throws IOException {
- out.writeByte(opcode);
- out.writeShort(s);
- }
+ public InstructionShort(short opcode, short s) {
+ super(opcode);
+ this.s = s;
+ }
- public String toString(boolean verbose) {
- return super.toString(verbose) + " " + s;
- }
+ public void dump(DataOutputStream out) throws IOException {
+ out.writeByte(opcode);
+ out.writeShort(s);
+ }
+
+ public String toString(boolean verbose) {
+ return super.toString(verbose) + " " + s;
+ }
}