Skip to content

Commit

Permalink
For now, do not try to work around broken generic types.
Browse files Browse the repository at this point in the history
  • Loading branch information
raphw committed Oct 25, 2016
1 parent 1f3e56c commit 4740537
Showing 1 changed file with 1 addition and 8 deletions.
Expand Up @@ -5130,14 +5130,7 @@ protected ForLoadedType(ParameterizedType parameterizedType, AnnotationReader an

@Override
public TypeList.Generic getTypeArguments() {
java.lang.reflect.Type[] typeArgument = parameterizedType.getActualTypeArguments();
// Onfuscators might cause the Java reflection API to only partially erase types.
for (java.lang.reflect.Type aTypeArgument : typeArgument) {
if (aTypeArgument == null) {
return new TypeList.Generic.Empty();
}
}
return new ParameterArgumentTypeList(typeArgument, annotationReader);
return new ParameterArgumentTypeList(parameterizedType.getActualTypeArguments(), annotationReader);
}

@Override
Expand Down

0 comments on commit 4740537

Please sign in to comment.