Fix innerclass and generics breaking variable names

This commit is contained in:
Thinkofdeath 2015-02-24 14:06:59 +00:00
parent 1f64176246
commit 7cfb48c2ed

View File

@ -66,6 +66,11 @@ public class VarHelper {
return name;
}
while (type.contains( "<" )) {
type = type.substring(0, type.indexOf('<')) + type.substring(type.indexOf('>') + 1);
}
type = type.replace( '.', '_' );
if (type.endsWith("]")) {
type = "a" + type.substring(0, type.indexOf('['));
} else if (varArgs) {