diff options
author | Jonas Herzig <me@johni0702.de> | 2019-04-26 23:10:25 +0200 |
---|---|---|
committer | Jonas Herzig <me@johni0702.de> | 2019-04-26 23:10:25 +0200 |
commit | 8f3a2e709178fc88d1f99b65af3255e1018196a8 (patch) | |
tree | c6cf02c78d4cd058491c410d1d9df36f6775ba40 /src/main/java/com/replaymod/gradle/remap | |
parent | 337967ffd8e109e19921dc2e43b83c91d4ef791c (diff) | |
download | Remap-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.java | 4 |
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; |