From 8f3a2e709178fc88d1f99b65af3255e1018196a8 Mon Sep 17 00:00:00 2001 From: Jonas Herzig Date: Fri, 26 Apr 2019 23:10:25 +0200 Subject: Fix remapping of types which have generics on them --- src/main/java/com/replaymod/gradle/remap/Transformer.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/main/java/com/replaymod/gradle/remap') 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; -- cgit