Better comments for edge cases

This commit is contained in:
Juan Martín Sotuyo Dodero
2017-06-29 21:19:43 -03:00
parent 08e8dbc08a
commit 10aab46ba6

View File

@ -27,6 +27,7 @@ public class JavaTypeDefinition implements TypeDefinition {
final TypeVariable<?>[] typeParameters;
if (clazz.isAnonymousClass()) {
// the anonymous class can't have generics, but we may be bounding generics from super classes
typeParameters = resolveTypeDefinition(clazz.getGenericSuperclass()).clazz.getTypeParameters();
} else {
typeParameters = clazz.getTypeParameters();