From 2c6840ac26eb851c477ef8a4c7d6c82f75f846a9 Mon Sep 17 00:00:00 2001 From: Thinkofdeath Date: Wed, 25 Feb 2015 10:21:23 +0000 Subject: Fix issues with generics with generics --- src/org/jetbrains/java/decompiler/util/VarHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/jetbrains/java/decompiler/util/VarHelper.java b/src/org/jetbrains/java/decompiler/util/VarHelper.java index 3828159..f76dca9 100644 --- a/src/org/jetbrains/java/decompiler/util/VarHelper.java +++ b/src/org/jetbrains/java/decompiler/util/VarHelper.java @@ -67,7 +67,7 @@ public class VarHelper { } while (type.contains( "<" )) { - type = type.substring(0, type.indexOf('<')) + type.substring(type.indexOf('>') + 1); + type = type.substring(0, type.indexOf('<')) + type.substring(type.lastIndexOf('>') + 1); } type = type.replace( '.', '_' ); -- cgit v1.2.3