aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/replaymod/gradle/remap
diff options
context:
space:
mode:
authorJonas Herzig <me@johni0702.de>2019-04-26 23:10:25 +0200
committerJonas Herzig <me@johni0702.de>2019-04-26 23:10:25 +0200
commit8f3a2e709178fc88d1f99b65af3255e1018196a8 (patch)
treec6cf02c78d4cd058491c410d1d9df36f6775ba40 /src/main/java/com/replaymod/gradle/remap
parent337967ffd8e109e19921dc2e43b83c91d4ef791c (diff)
downloadRemap-8f3a2e709178fc88d1f99b65af3255e1018196a8.tar.gz
Remap-8f3a2e709178fc88d1f99b65af3255e1018196a8.tar.bz2
Remap-8f3a2e709178fc88d1f99b65af3255e1018196a8.zip
Fix remapping of types which have generics on them
Diffstat (limited to 'src/main/java/com/replaymod/gradle/remap')
-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;