[type-utils] Fix handling of primitive types in ActualType

This commit is contained in:
2025-07-27 22:32:54 +02:00
parent 83f2a7399c
commit 3acd43357b

View File

@@ -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();