Skip to content

Commit d944f53

Browse files
committed
Fix function-sample-SI for latest deps state
**Cherry-pick to `4.0.x`** (cherry picked from commit a744e7a)
1 parent a67d80b commit d944f53

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

spring-cloud-function-samples/function-sample-spring-integration/src/main/java/example/FunctionSampleSpringIntegrationApplication.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2019-2020 the original author or authors.
2+
* Copyright 2019-2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -22,7 +22,6 @@
2222
import org.springframework.boot.autoconfigure.SpringBootApplication;
2323
import org.springframework.context.annotation.Bean;
2424
import org.springframework.integration.dsl.IntegrationFlow;
25-
import org.springframework.integration.dsl.IntegrationFlows;
2625
import org.springframework.integration.handler.LoggingHandler;
2726
import org.springframework.messaging.Message;
2827

@@ -35,9 +34,10 @@ public static void main(String[] args) {
3534

3635
@Bean
3736
public IntegrationFlow uppercaseFlow() {
38-
return IntegrationFlows.from(MessageFunction.class, (gateway) -> gateway.beanName("uppercase"))
37+
return IntegrationFlow.from(MessageFunction.class, (gateway) -> gateway.beanName("uppercase"))
3938
.<String, String>transform(String::toUpperCase)
40-
.logAndReply(LoggingHandler.Level.WARN);
39+
.log(LoggingHandler.Level.WARN)
40+
.get();
4141
}
4242

4343
public interface MessageFunction extends Function<Message<String>, Message<String>> {

0 commit comments

Comments
 (0)