diff options
author | Roman Shevchenko <roman.shevchenko@jetbrains.com> | 2014-10-06 17:26:24 +0200 |
---|---|---|
committer | Roman Shevchenko <roman.shevchenko@jetbrains.com> | 2014-10-06 17:26:24 +0200 |
commit | bef17b44fce71dfce6345f19695949eb4432e25d (patch) | |
tree | 45f65e5da978d7180c1b190ce816400882b07592 /src/org/jetbrains/java/decompiler/struct/attr | |
parent | 8462998a86033277557a49b85f9720e21ae70dcb (diff) | |
download | fernflower-bef17b44fce71dfce6345f19695949eb4432e25d.tar fernflower-bef17b44fce71dfce6345f19695949eb4432e25d.tar.gz fernflower-bef17b44fce71dfce6345f19695949eb4432e25d.tar.lz fernflower-bef17b44fce71dfce6345f19695949eb4432e25d.tar.xz fernflower-bef17b44fce71dfce6345f19695949eb4432e25d.zip |
java-decompiler: minor optimization (no more empty array creation)
Diffstat (limited to 'src/org/jetbrains/java/decompiler/struct/attr')
-rw-r--r-- | src/org/jetbrains/java/decompiler/struct/attr/StructLineNumberTableAttribute.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/org/jetbrains/java/decompiler/struct/attr/StructLineNumberTableAttribute.java b/src/org/jetbrains/java/decompiler/struct/attr/StructLineNumberTableAttribute.java index 695d659..f35d3d9 100644 --- a/src/org/jetbrains/java/decompiler/struct/attr/StructLineNumberTableAttribute.java +++ b/src/org/jetbrains/java/decompiler/struct/attr/StructLineNumberTableAttribute.java @@ -17,6 +17,7 @@ package org.jetbrains.java.decompiler.struct.attr; import org.jetbrains.java.decompiler.struct.consts.ConstantPool; import org.jetbrains.java.decompiler.util.DataInputFullStream; +import org.jetbrains.java.decompiler.util.InterpreterUtil; import java.io.IOException; @@ -29,7 +30,7 @@ import java.io.IOException; * Created by Egor on 05.10.2014. */ public class StructLineNumberTableAttribute extends StructGeneralAttribute { - private int[] myLineInfo = new int[0]; + private int[] myLineInfo = InterpreterUtil.EMPTY_INT_ARRAY; @Override public void initContent(ConstantPool pool) throws IOException { @@ -44,7 +45,7 @@ public class StructLineNumberTableAttribute extends StructGeneralAttribute { } } else if (myLineInfo.length > 0) { - myLineInfo = new int[0]; + myLineInfo = InterpreterUtil.EMPTY_INT_ARRAY; } } |