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
This commit is contained in:
@@ -24,7 +24,6 @@ import org.jetbrains.java.decompiler.util.InterpreterUtil;
|
||||
import org.jetbrains.java.decompiler.util.VBStyleCollection;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
|
||||
/*
|
||||
class_file {
|
||||
@@ -62,8 +61,8 @@ public class StructClass extends StructMember {
|
||||
|
||||
private ConstantPool pool;
|
||||
|
||||
public StructClass(InputStream inStream, boolean own, LazyLoader loader) throws IOException {
|
||||
this(new DataInputFullStream(inStream), own, loader);
|
||||
public StructClass(byte[] bytes, boolean own, LazyLoader loader) throws IOException {
|
||||
this(new DataInputFullStream(bytes), own, loader);
|
||||
}
|
||||
|
||||
public StructClass(DataInputFullStream in, boolean own, LazyLoader loader) throws IOException {
|
||||
|
||||
Reference in New Issue
Block a user