diff options
Diffstat (limited to 'enigma-cli/src/main/java/cuchaz/enigma/command')
| -rw-r--r-- | enigma-cli/src/main/java/cuchaz/enigma/command/MapSpecializedMethodsCommand.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/enigma-cli/src/main/java/cuchaz/enigma/command/MapSpecializedMethodsCommand.java b/enigma-cli/src/main/java/cuchaz/enigma/command/MapSpecializedMethodsCommand.java index 644b08d..4b67a35 100644 --- a/enigma-cli/src/main/java/cuchaz/enigma/command/MapSpecializedMethodsCommand.java +++ b/enigma-cli/src/main/java/cuchaz/enigma/command/MapSpecializedMethodsCommand.java | |||
| @@ -6,7 +6,6 @@ import java.nio.file.Paths; | |||
| 6 | import java.util.Map; | 6 | import java.util.Map; |
| 7 | 7 | ||
| 8 | import cuchaz.enigma.ProgressListener; | 8 | import cuchaz.enigma.ProgressListener; |
| 9 | import cuchaz.enigma.analysis.IndexTreeBuilder; | ||
| 10 | import cuchaz.enigma.analysis.index.BridgeMethodIndex; | 9 | import cuchaz.enigma.analysis.index.BridgeMethodIndex; |
| 11 | import cuchaz.enigma.analysis.index.JarIndex; | 10 | import cuchaz.enigma.analysis.index.JarIndex; |
| 12 | import cuchaz.enigma.classprovider.CachingClassProvider; | 11 | import cuchaz.enigma.classprovider.CachingClassProvider; |
| @@ -54,7 +53,6 @@ public class MapSpecializedMethodsCommand extends Command { | |||
| 54 | 53 | ||
| 55 | BridgeMethodIndex bridgeMethodIndex = jarIndex.getBridgeMethodIndex(); | 54 | BridgeMethodIndex bridgeMethodIndex = jarIndex.getBridgeMethodIndex(); |
| 56 | Translator translator = new MappingTranslator(source, jarIndex.getEntryResolver()); | 55 | Translator translator = new MappingTranslator(source, jarIndex.getEntryResolver()); |
| 57 | IndexTreeBuilder indexTreeBuilder = new IndexTreeBuilder(jarIndex); | ||
| 58 | 56 | ||
| 59 | // Copy all non-specialized methods | 57 | // Copy all non-specialized methods |
| 60 | for (EntryTreeNode<EntryMapping> node : source) { | 58 | for (EntryTreeNode<EntryMapping> node : source) { |
| @@ -66,7 +64,7 @@ public class MapSpecializedMethodsCommand extends Command { | |||
| 66 | // Add correct mappings for specialized methods | 64 | // Add correct mappings for specialized methods |
| 67 | for (Map.Entry<MethodEntry, MethodEntry> entry : bridgeMethodIndex.getBridgeToSpecialized().entrySet()) { | 65 | for (Map.Entry<MethodEntry, MethodEntry> entry : bridgeMethodIndex.getBridgeToSpecialized().entrySet()) { |
| 68 | MethodEntry bridge = entry.getKey(); | 66 | MethodEntry bridge = entry.getKey(); |
| 69 | MethodEntry specialized = indexTreeBuilder.buildMethodInheritance(translator, entry.getValue()).getMethodEntry(); | 67 | MethodEntry specialized = entry.getValue(); |
| 70 | String name = translator.translate(bridge).getName(); | 68 | String name = translator.translate(bridge).getName(); |
| 71 | result.insert(specialized, new EntryMapping(name)); | 69 | result.insert(specialized, new EntryMapping(name)); |
| 72 | } | 70 | } |