Finish migration to java17, boot 3.0, spring 6

This commit is contained in:
Oleg Zhurakousky
2022-01-14 11:05:58 +01:00
parent b4293878b4
commit 5074b7eee4
52 changed files with 242 additions and 205 deletions

View File

@@ -133,7 +133,7 @@ public class BeanFactoryAwarePojoFunctionRegistryTests {
}
// POJO Function
private static class MyFunctionLike {
public static class MyFunctionLike {
public String uppercase(String value) {
return value.toUpperCase();
}

View File

@@ -135,7 +135,7 @@ public class SimpleFunctionRegistryTests {
};
FunctionRegistration<Function<Map<String, Person>, String>> registration = new FunctionRegistration<>(
function, "echo").type(FunctionType.of(functionType));
function, "echo").type(functionType);
SimpleFunctionRegistry catalog = new SimpleFunctionRegistry(this.conversionService, this.messageConverter,
new JacksonMapper(new ObjectMapper()));
catalog.register(registration);