diff options
author | chiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2010-04-28 10:29:14 +0000 |
---|---|---|
committer | chiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2010-04-28 10:29:14 +0000 |
commit | 90a63c763700c9a853ba311ec2c35036acc67a94 (patch) | |
tree | fac15cdbe4a3f9c9a99cafd4f7c2a538ae53a59d | |
parent | 829a336dd0bf168de7b8c66890b2d13212882190 (diff) | |
download | javassist-90a63c763700c9a853ba311ec2c35036acc67a94.tar.gz javassist-90a63c763700c9a853ba311ec2c35036acc67a94.zip |
for performance tuning
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@539 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
-rw-r--r-- | src/main/javassist/bytecode/CodeAttribute.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main/javassist/bytecode/CodeAttribute.java b/src/main/javassist/bytecode/CodeAttribute.java index 36ee58fe..4705d2bb 100644 --- a/src/main/javassist/bytecode/CodeAttribute.java +++ b/src/main/javassist/bytecode/CodeAttribute.java @@ -19,7 +19,7 @@ import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import java.util.List; -import java.util.LinkedList; +import java.util.ArrayList; import java.util.Iterator; import java.util.Map; @@ -43,7 +43,7 @@ public class CodeAttribute extends AttributeInfo implements Opcode { private int maxStack; private int maxLocals; private ExceptionTable exceptions; - private LinkedList attributes; + private ArrayList attributes; /** * Constructs a <code>Code_attribute</code>. @@ -62,7 +62,7 @@ public class CodeAttribute extends AttributeInfo implements Opcode { maxLocals = locals; info = code; exceptions = etable; - attributes = new LinkedList(); + attributes = new ArrayList(); } /** @@ -82,7 +82,7 @@ public class CodeAttribute extends AttributeInfo implements Opcode { maxStack = src.getMaxStack(); maxLocals = src.getMaxLocals(); exceptions = src.getExceptionTable().copy(cp, classnames); - attributes = new LinkedList(); + attributes = new ArrayList(); List src_attr = src.getAttributes(); int num = src_attr.size(); for (int i = 0; i < num; ++i) { @@ -108,7 +108,7 @@ public class CodeAttribute extends AttributeInfo implements Opcode { exceptions = new ExceptionTable(cp, in); - attributes = new LinkedList(); + attributes = new ArrayList(); int num = in.readUnsignedShort(); for (int i = 0; i < num; ++i) attributes.add(AttributeInfo.read(cp, in)); |