Polishing related to merginng the previous commit as well as upgrade of Kotlin libs

This commit is contained in:
Oleg Zhurakousky
2021-10-25 13:28:31 +02:00
parent 4c7dfa7a73
commit e58741b6cb
4 changed files with 12 additions and 7 deletions

View File

@@ -120,7 +120,7 @@
<plugin>
<artifactId>kotlin-maven-plugin</artifactId>
<groupId>org.jetbrains.kotlin</groupId>
<version>1.4.21</version>
<version>1.6.0-RC</version>
<configuration>
<args>
<arg>-Xjsr305=strict</arg>
@@ -159,7 +159,7 @@
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-maven-allopen</artifactId>
<version>1.4.21</version>
<version>1.6.0-RC</version>
</dependency>
</dependencies>
</plugin>

View File

@@ -880,9 +880,11 @@ public class BeanFactoryAwareFunctionRegistryTests {
@SuppressWarnings("unchecked")
@Override
protected Object doApply(Message<byte[]> input, FunctionInvocationWrapper targetFunction) {
MessageBuilder.fromMessage(input).setHeader("before", "foo").build();
Message<Object> result = (Message<Object>) targetFunction.apply(MessageBuilder.fromMessage(input).setHeader("before", "foo").build());
protected Object doApply(Object input, FunctionInvocationWrapper targetFunction) {
// in this test we know input is a Message
Message<?> mInput = (Message<?>) input;
MessageBuilder.fromMessage(mInput).setHeader("before", "foo").build();
Message<Object> result = (Message<Object>) targetFunction.apply(MessageBuilder.fromMessage(mInput).setHeader("before", "foo").build());
return MessageBuilder.fromMessage(result).setHeader("after", "bar").build();
}
};