From ff382a6fdfec77d9b9cb3165eb7eb2989abb604f Mon Sep 17 00:00:00 2001 From: Roman Shevchenko Date: Fri, 5 Sep 2014 13:12:40 +0400 Subject: java-decompiler: fixes and cleanups - console decompiler: resource closing, lookup instead of scan, error reporting - logger interface reworked - saver interface renamed - bytecode provider returns byte array (to reduce stream leakage) - extra level of context unit avoided - unneeded exceptions, dead code, formatting --- .../jetbrains/java/decompiler/struct/attr/StructGeneralAttribute.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/org/jetbrains/java/decompiler/struct/attr/StructGeneralAttribute.java') diff --git a/src/org/jetbrains/java/decompiler/struct/attr/StructGeneralAttribute.java b/src/org/jetbrains/java/decompiler/struct/attr/StructGeneralAttribute.java index 5d43100..2cdc524 100644 --- a/src/org/jetbrains/java/decompiler/struct/attr/StructGeneralAttribute.java +++ b/src/org/jetbrains/java/decompiler/struct/attr/StructGeneralAttribute.java @@ -18,7 +18,6 @@ package org.jetbrains.java.decompiler.struct.attr; import org.jetbrains.java.decompiler.struct.consts.ConstantPool; import org.jetbrains.java.decompiler.util.DataInputFullStream; -import java.io.ByteArrayInputStream; import java.io.IOException; /* @@ -104,7 +103,7 @@ public class StructGeneralAttribute { } protected DataInputFullStream stream() { - return new DataInputFullStream(new ByteArrayInputStream(info)); + return new DataInputFullStream(info); } public void initContent(ConstantPool pool) throws IOException { } -- cgit v1.2.3