diff options
| -rw-r--r-- | src/main/java/cuchaz/enigma/analysis/TranslationIndex.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/java/cuchaz/enigma/analysis/TranslationIndex.java b/src/main/java/cuchaz/enigma/analysis/TranslationIndex.java index 17bf51ba..25edaef4 100644 --- a/src/main/java/cuchaz/enigma/analysis/TranslationIndex.java +++ b/src/main/java/cuchaz/enigma/analysis/TranslationIndex.java | |||
| @@ -274,6 +274,13 @@ public class TranslationIndex { | |||
| 274 | // so let's look at all the trees | 274 | // so let's look at all the trees |
| 275 | 275 | ||
| 276 | for (ClassEntry interfaceEntry : this.interfaces.get(entry.getClassEntry())) { | 276 | for (ClassEntry interfaceEntry : this.interfaces.get(entry.getClassEntry())) { |
| 277 | Collection<ClassEntry> subInterface = this.interfaces.get(interfaceEntry); | ||
| 278 | if (subInterface != null && !subInterface.isEmpty()) | ||
| 279 | { | ||
| 280 | ClassEntry result = resolveInterface(entry.cloneToNewClass(interfaceEntry)); | ||
| 281 | if (result != null) | ||
| 282 | return result; | ||
| 283 | } | ||
| 277 | ClassEntry resolvedClassEntry = resolveSuperclass(entry.cloneToNewClass(interfaceEntry)); | 284 | ClassEntry resolvedClassEntry = resolveSuperclass(entry.cloneToNewClass(interfaceEntry)); |
| 278 | if (resolvedClassEntry != null) { | 285 | if (resolvedClassEntry != null) { |
| 279 | return resolvedClassEntry; | 286 | return resolvedClassEntry; |