Skip to content

Commit 23a6951

Browse files
Fix typo in docs replacing FunctionRoutingResult to String in MessageRoutingCallback
1 parent bdd0c41 commit 23a6951

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
public interface MessageRoutingCallback {
3434

3535
/**
36-
* Computes and returns the instance of {@link FunctionRoutingResult} which encapsulates,
36+
* Computes and returns the instance of {@link String} which encapsulates,
3737
* at the very minimum, function definition.
3838
* <br><br>
3939
* Providing such message is primarily an optimization feature. It could be useful for cases
@@ -42,7 +42,7 @@ public interface MessageRoutingCallback {
4242
* message for downstream use didn't exist, resulting in repeated transformation, type conversion etc.
4343
*
4444
* @param message input message
45-
* @return instance of {@link FunctionRoutingResult} containing the result of the routing computation
45+
* @return instance of {@link String} containing the result of the routing computation
4646
*/
4747
default String routingResult(Message<?> message) {
4848
return (String) message.getHeaders().get(FunctionProperties.FUNCTION_DEFINITION);

0 commit comments

Comments
 (0)