Skip to content

Commit e4e511b

Browse files
committed
Fix FernFlower "Rename ambiguous classes and class elements".
1 parent 77521a2 commit e4e511b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/main/java/the/bytecode/club/bytecodeviewer/decompilers/impl/FernFlowerDecompiler.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,12 @@ public String decompileClassNode(final ClassNode cn, byte[] b)
118118

119119
tempClass.delete();
120120

121-
final File outputJava = new File(start + ".java");
121+
String javaDir = start;
122+
if (BytecodeViewer.viewer.ren.isSelected()) {
123+
javaDir = tempDirectory + "class_0";
124+
}
125+
126+
final File outputJava = new File(javaDir + ".java");
122127
if (outputJava.exists()) {
123128
String s;
124129
try {

0 commit comments

Comments
 (0)