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:
Roman Shevchenko
2014-09-05 13:12:40 +04:00
parent 4e79d160ca
commit ff382a6fdf
28 changed files with 494 additions and 684 deletions

View File

@@ -15,9 +15,8 @@
*/
package org.jetbrains.java.decompiler.main.extern;
import java.io.InputStream;
import java.io.IOException;
public interface IBytecodeProvider {
InputStream getBytecodeStream(String externPath, String internPath);
byte[] getBytecode(String externalPath, String internalPath) throws IOException;
}