[jboss-cvs] javassist SVN: r539 - trunk/src/main/javassist/bytecode.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed Apr 28 06:29:15 EDT 2010
Author: chiba
Date: 2010-04-28 06:29:14 -0400 (Wed, 28 Apr 2010)
New Revision: 539
Modified:
trunk/src/main/javassist/bytecode/CodeAttribute.java
Log:
for performance tuning
Modified: trunk/src/main/javassist/bytecode/CodeAttribute.java
===================================================================
--- trunk/src/main/javassist/bytecode/CodeAttribute.java 2010-04-28 10:26:27 UTC (rev 538)
+++ trunk/src/main/javassist/bytecode/CodeAttribute.java 2010-04-28 10:29:14 UTC (rev 539)
@@ -19,7 +19,7 @@
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 @@
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 @@
maxLocals = locals;
info = code;
exceptions = etable;
- attributes = new LinkedList();
+ attributes = new ArrayList();
}
/**
@@ -82,7 +82,7 @@
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 @@
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));
More information about the jboss-cvs-commits
mailing list