safe delete unused environment + deprecations, part 2

(follow-up to 63cae114)
master
Roman Shevchenko 10 years ago
parent e4e72404dc
commit debe6cc338
  1. 12
      src/org/jetbrains/java/decompiler/main/ClassesProcessor.java

@ -148,7 +148,7 @@ public class ClassesProcessor {
// root class?
if (!mapInnerClasses.containsKey(ent.getKey())) {
HashSet<String> setVisited = new HashSet<String>();
Set<String> setVisited = new HashSet<String>();
LinkedList<String> stack = new LinkedList<String>();
stack.add(ent.getKey());
@ -157,12 +157,12 @@ public class ClassesProcessor {
while (!stack.isEmpty()) {
String superClass = stack.removeFirst();
ClassNode supernode = mapRootClasses.get(superClass);
ClassNode superNode = mapRootClasses.get(superClass);
HashSet<String> setNestedClasses = mapNestedClassReferences.get(superClass);
Set<String> setNestedClasses = mapNestedClassReferences.get(superClass);
if (setNestedClasses != null) {
StructClass scl = supernode.classStruct;
StructClass scl = superNode.classStruct;
StructInnerClassesAttribute inner = (StructInnerClassesAttribute)scl.getAttributes().getWithKey("InnerClasses");
for (int i = 0; i < inner.getStringEntries().size(); i++) {
String nestedClass = inner.getStringEntries().get(i)[0];
@ -216,8 +216,8 @@ public class ClassesProcessor {
nestednode.access &= (CodeConstants.ACC_ABSTRACT | CodeConstants.ACC_FINAL);
}
supernode.nested.add(nestednode);
nestednode.parent = supernode;
superNode.nested.add(nestednode);
nestednode.parent = superNode;
nestednode.enclosingClasses.addAll(mapEnclosingClassReferences.get(nestedClass));

Loading…
Cancel
Save