[type-utils] Fix handling of primitive types in ActualType
This commit is contained in:
@@ -166,6 +166,8 @@ public class ActualType<T> implements AnnotatedElement {
|
||||
Class<?> currentClass = currentType.declaredType();
|
||||
if (currentClass == targetClass) {
|
||||
return currentType;
|
||||
} else if (currentClass.isPrimitive()) {
|
||||
return null;
|
||||
}
|
||||
|
||||
List<ActualType<?>> currentParameters = currentType.parameters();
|
||||
|
||||
Reference in New Issue
Block a user