Skip to content

Commit a9245f1

Browse files
author
emmanue1
committed
Update JD-Core
1 parent db81a9f commit a9245f1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

services/src/main/java/org/jd/gui/service/sourcesaver/ClassFileSourceSaverProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public void saveContent(API api, Controller controller, Listener listener, Path
111111
String entryInternalName = entryPath.substring(0, entryPath.length() - 6); // 6 = ".class".length()
112112

113113
// Decompile class file
114-
DECOMPILER.decompile(configuration, loader, printer, entryInternalName);
114+
DECOMPILER.decompile(loader, printer, entryInternalName, configuration);
115115

116116
StringBuilder stringBuffer = printer.getStringBuffer();
117117

services/src/main/java/org/jd/gui/view/component/ClassFilePage.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public class ClassFilePage extends TypePage {
3737
// Early class loading
3838
try {
3939
String internalTypeName = ClassFilePage.class.getName().replace('.', '/');
40-
DECOMPILER.decompile(Collections.emptyMap(), new ClassPathLoader(), new NopPrinter(), internalTypeName);
40+
DECOMPILER.decompile(new ClassPathLoader(), new NopPrinter(), internalTypeName);
4141
} catch (Throwable t) {
4242
assert ExceptionUtil.printStackTrace(t);
4343
}
@@ -84,7 +84,7 @@ public void decompile(Map<String, String> preferences) {
8484
String entryInternalName = entryPath.substring(0, entryPath.length() - 6); // 6 = ".class".length()
8585

8686
// Decompile class file
87-
DECOMPILER.decompile(configuration, loader, printer, entryInternalName);
87+
DECOMPILER.decompile(loader, printer, entryInternalName, configuration);
8888
setText(printer.getStringBuffer().toString());
8989
} catch (Throwable t) {
9090
assert ExceptionUtil.printStackTrace(t);

0 commit comments

Comments
 (0)