Cleanup (formatting; typos)

master
Roman Shevchenko 9 years ago
parent f0e7494a65
commit 2867a8d41f
  1. 8
      src/org/jetbrains/java/decompiler/main/collectors/ImportCollector.java

@ -15,7 +15,6 @@
*/ */
package org.jetbrains.java.decompiler.main.collectors; package org.jetbrains.java.decompiler.main.collectors;
import org.jetbrains.java.decompiler.main.ClassesProcessor;
import org.jetbrains.java.decompiler.main.ClassesProcessor.ClassNode; import org.jetbrains.java.decompiler.main.ClassesProcessor.ClassNode;
import org.jetbrains.java.decompiler.main.DecompilerContext; import org.jetbrains.java.decompiler.main.DecompilerContext;
import org.jetbrains.java.decompiler.main.TextBuffer; import org.jetbrains.java.decompiler.main.TextBuffer;
@ -46,13 +45,12 @@ public class ImportCollector {
} }
} }
public String getShortName(String fullname) { public String getShortName(String fullName) {
return getShortName(fullname, true); return getShortName(fullName, true);
} }
public String getShortName(String fullName, boolean imported) { public String getShortName(String fullName, boolean imported) {
ClassesProcessor clProc = DecompilerContext.getClassProcessor(); ClassNode node = DecompilerContext.getClassProcessor().getMapRootClasses().get(fullName.replace('.', '/'));
ClassNode node = clProc.getMapRootClasses().get(fullName.replace('.', '/'));
String result = null; String result = null;
if (node != null && node.classStruct.isOwn()) { if (node != null && node.classStruct.isOwn()) {

Loading…
Cancel
Save