diff options
author | Roman Shevchenko <roman.shevchenko@jetbrains.com> | 2014-08-29 21:58:12 +0400 |
---|---|---|
committer | Roman Shevchenko <roman.shevchenko@jetbrains.com> | 2014-08-29 21:58:12 +0400 |
commit | f5431c3bb14854025dc1f0ec470b77497f79494c (patch) | |
tree | 909c1c06492d849fa062a60c56a02dd26e7095b6 /src/org/jetbrains/java/decompiler/struct/gen/generics | |
parent | 63b8d35d08a198215ddabb42cca5b0e823232768 (diff) | |
download | fernflower-f5431c3bb14854025dc1f0ec470b77497f79494c.tar fernflower-f5431c3bb14854025dc1f0ec470b77497f79494c.tar.gz fernflower-f5431c3bb14854025dc1f0ec470b77497f79494c.tar.lz fernflower-f5431c3bb14854025dc1f0ec470b77497f79494c.tar.xz fernflower-f5431c3bb14854025dc1f0ec470b77497f79494c.zip |
java-decompiler: post-import cleanup (common fixes and optimizations)
Diffstat (limited to 'src/org/jetbrains/java/decompiler/struct/gen/generics')
-rw-r--r-- | src/org/jetbrains/java/decompiler/struct/gen/generics/GenericMain.java | 2 | ||||
-rw-r--r-- | src/org/jetbrains/java/decompiler/struct/gen/generics/GenericType.java | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/org/jetbrains/java/decompiler/struct/gen/generics/GenericMain.java b/src/org/jetbrains/java/decompiler/struct/gen/generics/GenericMain.java index 6a4f52e..a2df8f5 100644 --- a/src/org/jetbrains/java/decompiler/struct/gen/generics/GenericMain.java +++ b/src/org/jetbrains/java/decompiler/struct/gen/generics/GenericMain.java @@ -221,7 +221,7 @@ public class GenericMain { String res = name.replace('/', '.'); - if (res.indexOf("$") >= 0) { + if (res.contains("$")) { StructClass cl = DecompilerContext.getStructcontext().getClass(name); if (cl == null || !cl.isOwn()) { res = res.replace('$', '.'); diff --git a/src/org/jetbrains/java/decompiler/struct/gen/generics/GenericType.java b/src/org/jetbrains/java/decompiler/struct/gen/generics/GenericType.java index 61d07a0..160a0ac 100644 --- a/src/org/jetbrains/java/decompiler/struct/gen/generics/GenericType.java +++ b/src/org/jetbrains/java/decompiler/struct/gen/generics/GenericType.java @@ -105,7 +105,7 @@ public class GenericType { } } - private String getNextClassSignature(String value) { + private static String getNextClassSignature(String value) { int counter = 0; int index = 0; @@ -131,7 +131,7 @@ public class GenericType { return value.substring(0, index); } - private void parseArgumentsList(String value, GenericType type) { + private static void parseArgumentsList(String value, GenericType type) { if (value == null) { return; @@ -214,7 +214,7 @@ public class GenericType { return value.substring(0, index + 1); } - private int getType(char c) { + private static int getType(char c) { switch (c) { case 'B': return CodeConstants.TYPE_BYTE; |