Skip to content

Commit aaee2ab

Browse files
committed
Include Java Runtime classes by default
1 parent cedb56a commit aaee2ab

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/org/jetbrains/java/decompiler/main/extern/IFernflowerPreferences.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ static Map<String, Object> getDefaults() {
453453
defaults.put(DECOMPILE_PREVIEW, "1"); // Preview features are useful to decompile in almost all cases
454454

455455
defaults.put(INCLUDE_ENTIRE_CLASSPATH, "0");
456-
defaults.put(INCLUDE_JAVA_RUNTIME, "");
456+
defaults.put(INCLUDE_JAVA_RUNTIME, "1");
457457
defaults.put(EXPLICIT_GENERIC_ARGUMENTS, "0");
458458
defaults.put(INLINE_SIMPLE_LAMBDAS, "1");
459459

testFixtures/org/jetbrains/java/decompiler/DecompilerTestFixture.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ public void setUp(Object... optionPairs) throws IOException {
5656
options.put(IFernflowerPreferences.UNIT_TEST_MODE, "1");
5757
options.put(IFernflowerPreferences.NEW_LINE_SEPARATOR, "1");
5858
options.put(IFernflowerPreferences.ERROR_MESSAGE, "");
59+
options.put(IFernflowerPreferences.INCLUDE_JAVA_RUNTIME, "");
5960
for (int i = 0; i < optionPairs.length; i += 2) {
6061
options.put((String) optionPairs[i], optionPairs[i + 1]);
6162
}

0 commit comments

Comments
 (0)