From 3acd43357bb7014b5cff4e923ac1c3a807ba85f0 Mon Sep 17 00:00:00 2001 From: Siphalor Date: Sun, 27 Jul 2025 22:32:54 +0200 Subject: [PATCH] [type-utils] Fix handling of primitive types in ActualType --- .../java/de/siphalor/tweed5/typeutils/api/type/ActualType.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tweed5-type-utils/src/main/java/de/siphalor/tweed5/typeutils/api/type/ActualType.java b/tweed5-type-utils/src/main/java/de/siphalor/tweed5/typeutils/api/type/ActualType.java index bf442f3..02fe143 100644 --- a/tweed5-type-utils/src/main/java/de/siphalor/tweed5/typeutils/api/type/ActualType.java +++ b/tweed5-type-utils/src/main/java/de/siphalor/tweed5/typeutils/api/type/ActualType.java @@ -166,6 +166,8 @@ public class ActualType implements AnnotatedElement { Class currentClass = currentType.declaredType(); if (currentClass == targetClass) { return currentType; + } else if (currentClass.isPrimitive()) { + return null; } List> currentParameters = currentType.parameters();