diff options
| -rw-r--r-- | enigma/src/main/java/cuchaz/enigma/translation/representation/TypeDescriptor.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/enigma/src/main/java/cuchaz/enigma/translation/representation/TypeDescriptor.java b/enigma/src/main/java/cuchaz/enigma/translation/representation/TypeDescriptor.java index 9b798877..a7dccfcf 100644 --- a/enigma/src/main/java/cuchaz/enigma/translation/representation/TypeDescriptor.java +++ b/enigma/src/main/java/cuchaz/enigma/translation/representation/TypeDescriptor.java | |||
| @@ -34,7 +34,7 @@ public class TypeDescriptor implements Translatable { | |||
| 34 | 34 | ||
| 35 | // don't deal with generics | 35 | // don't deal with generics |
| 36 | // this is just for raw jvm types | 36 | // this is just for raw jvm types |
| 37 | if (desc.charAt(0) == 'T' || desc.indexOf('<') >= 0 || desc.indexOf('>') >= 0) { | 37 | if ((desc.charAt(0) == 'T' && readClass(desc) != null) || desc.indexOf('<') >= 0 || desc.indexOf('>') >= 0) { |
| 38 | throw new IllegalArgumentException("don't use with generic types or templates: " + desc); | 38 | throw new IllegalArgumentException("don't use with generic types or templates: " + desc); |
| 39 | } | 39 | } |
| 40 | 40 | ||