aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/replaymod/gradle/remap/Transformer.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/replaymod/gradle/remap/Transformer.java')
-rw-r--r--src/main/java/com/replaymod/gradle/remap/Transformer.java17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/main/java/com/replaymod/gradle/remap/Transformer.java b/src/main/java/com/replaymod/gradle/remap/Transformer.java
index de81501..e41867f 100644
--- a/src/main/java/com/replaymod/gradle/remap/Transformer.java
+++ b/src/main/java/com/replaymod/gradle/remap/Transformer.java
@@ -520,17 +520,18 @@ class Transformer {
}
mapping = null;
}
-
- ITypeBinding superClass = declaringClass.getSuperclass();
- if (superClass != null) {
- parentQueue.offer(superClass);
- }
- for (ITypeBinding anInterface : declaringClass.getInterfaces()) {
- parentQueue.offer(anInterface);
- }
while (mapping == null) {
declaringClass = parentQueue.poll();
if (declaringClass == null) return true;
+
+ ITypeBinding superClass = declaringClass.getSuperclass();
+ if (superClass != null) {
+ parentQueue.offer(superClass);
+ }
+ for (ITypeBinding anInterface : declaringClass.getInterfaces()) {
+ parentQueue.offer(anInterface);
+ }
+
name = stripGenerics(declaringClass.getQualifiedName());
if (name.isEmpty()) continue;
mapping = map.get(name);