GH-1023 Add no-op apply method to PostProcessingFunction

Resolves #1023
This commit is contained in:
Oleg Zhurakousky
2023-04-14 16:52:31 +02:00
parent 278d917543
commit 71243f2179

View File

@@ -37,6 +37,12 @@ import org.springframework.messaging.Message;
*/
public interface PostProcessingFunction<I, O> extends Function<I, O> {
@SuppressWarnings("unchecked")
@Override
default O apply(I t) {
return (O) t;
}
/**
* Will post process the result of this's function invocation after this function has been triggered.
* <br>