Fix getItemType() in SimpleFunctionRegistry to account for Message<?>

This commit is contained in:
Oleg Zhurakousky
2021-01-11 10:20:18 +01:00
parent 9bbb86be2d
commit d9a0add8b8

View File

@@ -387,6 +387,9 @@ public class SimpleFunctionRegistry implements FunctionRegistry, FunctionInspect
if (FunctionTypeUtils.isPublisher(type) || FunctionTypeUtils.isMessage(type) || FunctionTypeUtils.isTypeCollection(type)) {
type = FunctionTypeUtils.getGenericType(type);
}
if (FunctionTypeUtils.isMessage(type)) {
type = FunctionTypeUtils.getGenericType(type);
}
return type;
}