aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main/java/com/replaymod/gradle/remap/Transformer.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/com/replaymod/gradle/remap/Transformer.java b/src/main/java/com/replaymod/gradle/remap/Transformer.java
index a3bf2fc..bbc6b2e 100644
--- a/src/main/java/com/replaymod/gradle/remap/Transformer.java
+++ b/src/main/java/com/replaymod/gradle/remap/Transformer.java
@@ -360,6 +360,10 @@ class Transformer {
} else if (binding instanceof ITypeBinding) {
String name = ((ITypeBinding) binding).getQualifiedName();
if (name.isEmpty()) return true;
+ int paramIndex = name.indexOf('<');
+ if (paramIndex != -1) {
+ name = name.substring(0, paramIndex);
+ }
Mapping mapping = map.get(name);
if (mapping == null) return true;
mapped = mapping.newName;