aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/javassist/bytecode/ConstPool.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/javassist/bytecode/ConstPool.java')
-rw-r--r--src/main/javassist/bytecode/ConstPool.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main/javassist/bytecode/ConstPool.java b/src/main/javassist/bytecode/ConstPool.java
index 76573e1c..3a3443d1 100644
--- a/src/main/javassist/bytecode/ConstPool.java
+++ b/src/main/javassist/bytecode/ConstPool.java
@@ -894,8 +894,7 @@ public final class ConstPool {
private void read(DataInputStream in) throws IOException {
int n = in.readUnsignedShort();
- int size = (n / LongVector.SIZE + 1) * LongVector.SIZE;
- items = new LongVector(size);
+ items = new LongVector(n);
numOfItems = 0;
addItem(null); // index 0 is reserved by the JVM.