java-decompiler: post-import cleanup (common fixes and optimizations)

This commit is contained in:
Roman Shevchenko
2014-08-29 21:58:12 +04:00
parent 63b8d35d08
commit f5431c3bb1
62 changed files with 410 additions and 422 deletions

View File

@@ -303,7 +303,7 @@ public class ClassesProcessor {
}
}
private void initWrappers(ClassNode node) throws IOException {
private static void initWrappers(ClassNode node) throws IOException {
if (node.type == ClassNode.CLASS_LAMBDA) {
return;
@@ -319,7 +319,7 @@ public class ClassesProcessor {
}
}
private void addClassnameToImport(ClassNode node, ImportCollector imp) {
private static void addClassnameToImport(ClassNode node, ImportCollector imp) {
if (node.simpleName != null && node.simpleName.length() > 0) {
imp.getShortName(node.type == ClassNode.CLASS_ROOT ? node.classStruct.qualifiedName : node.simpleName, false);
@@ -330,7 +330,7 @@ public class ClassesProcessor {
}
}
private void destroyWrappers(ClassNode node) {
private static void destroyWrappers(ClassNode node) {
node.wrapper = null;
node.classStruct.releaseResources();
@@ -345,7 +345,7 @@ public class ClassesProcessor {
}
public class ClassNode {
public static class ClassNode {
public static final int CLASS_ROOT = 0;
public static final int CLASS_MEMBER = 1;
@@ -436,9 +436,7 @@ public class ClassesProcessor {
return null;
}
public class LambdaInformation {
public static class LambdaInformation {
public String class_name;
public String method_name;
public String method_descriptor;