Skip to content

Commit 71243f2

Browse files
committed
GH-1023 Add no-op apply method to PostProcessingFunction
Resolves #1023
1 parent 278d917 commit 71243f2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

spring-cloud-function-context/src/main/java/org/springframework/cloud/function/context/PostProcessingFunction.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@
3737
*/
3838
public interface PostProcessingFunction<I, O> extends Function<I, O> {
3939

40+
@SuppressWarnings("unchecked")
41+
@Override
42+
default O apply(I t) {
43+
return (O) t;
44+
}
45+
4046
/**
4147
* Will post process the result of this's function invocation after this function has been triggered.
4248
* <br>

0 commit comments

Comments
 (0)