diff --git a/src/me/nov/threadtear/decompiler/CFRBridge.java b/src/me/nov/threadtear/decompiler/CFRBridge.java index b43ea0e..184a288 100644 --- a/src/me/nov/threadtear/decompiler/CFRBridge.java +++ b/src/me/nov/threadtear/decompiler/CFRBridge.java @@ -63,15 +63,14 @@ public String getPossiblyRenamedPath(String path) { @Override public Pair getClassFileContent(String path) throws IOException { - String name = path.substring(0, path.length() - 6); - if (name.equals(name)) { - return Pair.make(bytes, name); + String clzName = path.substring(0, path.length() - 6); + if (clzName.equals(name)) { + return Pair.make(bytes, clzName); } - // cfr loads unnecessary classes. normally you should throw a FNF exception here, but this way, no long comment at the top of the code is created ClassNode dummy = new ClassNode(); - dummy.name = name; + dummy.name = clzName; dummy.version = 52; - return Pair.make(Conversion.toBytecode0(dummy), name); + return Pair.make(Conversion.toBytecode0(dummy), clzName); } @Override diff --git a/src/me/nov/threadtear/swing/tree/ClassTreePanel.java b/src/me/nov/threadtear/swing/tree/ClassTreePanel.java index 421d948..59ce13e 100644 --- a/src/me/nov/threadtear/swing/tree/ClassTreePanel.java +++ b/src/me/nov/threadtear/swing/tree/ClassTreePanel.java @@ -7,7 +7,6 @@ import java.util.*; import java.util.List; import java.util.jar.JarEntry; -import java.util.stream.Stream; import javax.swing.*; import javax.swing.tree.*;