diff options
Diffstat (limited to 'src/cuchaz/enigma/bytecode/ClassRenamer.java')
| -rw-r--r-- | src/cuchaz/enigma/bytecode/ClassRenamer.java | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/cuchaz/enigma/bytecode/ClassRenamer.java b/src/cuchaz/enigma/bytecode/ClassRenamer.java index d88daa5..d7acd30 100644 --- a/src/cuchaz/enigma/bytecode/ClassRenamer.java +++ b/src/cuchaz/enigma/bytecode/ClassRenamer.java | |||
| @@ -34,7 +34,6 @@ import javassist.bytecode.SignatureAttribute.MethodSignature; | |||
| 34 | import javassist.bytecode.SignatureAttribute.ObjectType; | 34 | import javassist.bytecode.SignatureAttribute.ObjectType; |
| 35 | import cuchaz.enigma.mapping.ClassEntry; | 35 | import cuchaz.enigma.mapping.ClassEntry; |
| 36 | import cuchaz.enigma.mapping.ClassNameReplacer; | 36 | import cuchaz.enigma.mapping.ClassNameReplacer; |
| 37 | import cuchaz.enigma.mapping.ParameterizedType; | ||
| 38 | import cuchaz.enigma.mapping.Translator; | 37 | import cuchaz.enigma.mapping.Translator; |
| 39 | import cuchaz.enigma.mapping.Type; | 38 | import cuchaz.enigma.mapping.Type; |
| 40 | 39 | ||
| @@ -103,8 +102,8 @@ public class ClassRenamer { | |||
| 103 | } | 102 | } |
| 104 | 103 | ||
| 105 | public String getFramed(String typeName) { | 104 | public String getFramed(String typeName) { |
| 106 | ParameterizedType type = new ParameterizedType(new Type(typeName)); | 105 | Type type = new Type(typeName); |
| 107 | ParameterizedType renamedType = new ParameterizedType(type, m_replacer); | 106 | Type renamedType = new Type(type, m_replacer); |
| 108 | if (!type.equals(renamedType)) { | 107 | if (!type.equals(renamedType)) { |
| 109 | return renamedType.toString(); | 108 | return renamedType.toString(); |
| 110 | } | 109 | } |
| @@ -115,6 +114,7 @@ public class ClassRenamer { | |||
| 115 | 114 | ||
| 116 | // we can deal with the ones that start with a class | 115 | // we can deal with the ones that start with a class |
| 117 | String signature = type.encode(); | 116 | String signature = type.encode(); |
| 117 | /* | ||
| 118 | if (signature.startsWith("L") || signature.startsWith("[")) { | 118 | if (signature.startsWith("L") || signature.startsWith("[")) { |
| 119 | 119 | ||
| 120 | // TEMP: skip special characters for now | 120 | // TEMP: skip special characters for now |
| @@ -134,10 +134,11 @@ public class ClassRenamer { | |||
| 134 | // don't need to care about template names | 134 | // don't need to care about template names |
| 135 | return null; | 135 | return null; |
| 136 | } else { | 136 | } else { |
| 137 | */ | ||
| 137 | // TEMP | 138 | // TEMP |
| 138 | System.out.println("Skipping translating: " + signature); | 139 | System.out.println("Skipping translating: " + signature); |
| 139 | return null; | 140 | return null; |
| 140 | } | 141 | //} |
| 141 | } | 142 | } |
| 142 | } | 143 | } |
| 143 | 144 | ||