[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();
|
Class<?> currentClass = currentType.declaredType();
|
||||||
if (currentClass == targetClass) {
|
if (currentClass == targetClass) {
|
||||||
return currentType;
|
return currentType;
|
||||||
|
} else if (currentClass.isPrimitive()) {
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
List<ActualType<?>> currentParameters = currentType.parameters();
|
List<ActualType<?>> currentParameters = currentType.parameters();
|
||||||
|
|||||||
Reference in New Issue
Block a user