Add short-circuit check for TypeInsn remapping, actually closes #21

This commit is contained in:
Mumfrey committed 2015-03-01 21:31:55 +00:00
1 parent 02aa220a36
commit c4a9fd4823
1 file changed
+5 -1
@@ -264,7 +264,11 @@ public class MixinTargetContext implements IReferenceMapperContext {
fieldInsn.owner = this.targetClass.name;
}
} else if (insn instanceof TypeInsnNode) {
this.transformDescriptor((TypeInsnNode)insn);
TypeInsnNode typeInsn = (TypeInsnNode)insn;
if (typeInsn.desc.equals(this.getClassRef())) {
typeInsn.desc = this.targetClass.name;
}
this.transformDescriptor(typeInsn);
}
}
}