better things extraction of constants 2

This commit is contained in:
2026-06-22 13:12:48 +02:00
parent 24a9be3a4e
commit c6b4a4be1e

View File

@@ -321,6 +321,12 @@ public abstract class AbstractCallGraphEngine implements CallGraphEngine {
}
if (declaredType != null) {
List<String> enumValues = context.getEnumValues(declaredType);
if (enumValues != null && !enumValues.isEmpty()) {
for (String ev : enumValues) {
polymorphicEvents.add(parseEnumSetElement(ev));
}
} else {
List<String> typesToInspect = new ArrayList<>();
if ("inline-instantiation".equals(sourceMethod)) {
typesToInspect.add(declaredType);
@@ -352,6 +358,7 @@ public abstract class AbstractCallGraphEngine implements CallGraphEngine {
}
}
}
}
boolean hasValidConstant = false;