Polishing the last commit

This commit is contained in:
Oleg Zhurakousky
2022-09-20 18:44:41 +02:00
parent 586aa7afa4
commit 14b47350cf

View File

@@ -77,10 +77,10 @@ public abstract class FunctionContextUtils {
} }
else { else {
Type t = definition.getResolvableType().getType(); Type t = definition.getResolvableType().getType();
if (t instanceof ParameterizedType) { if (!(t instanceof ParameterizedType) && definition.hasBeanClass()) {
return t; return FunctionTypeUtils.discoverFunctionTypeFromClass(definition.getBeanClass());
} }
return FunctionTypeUtils.discoverFunctionTypeFromClass(definition.getBeanClass()); return param;
} }
} }