Skip to content

Commit

Permalink
Merge pull request #1155 from VictorPongolino/typo-doc-fix
Browse files Browse the repository at this point in the history
Doc and Javadoc typos fix
  • Loading branch information
olegz authored Jul 2, 2024
2 parents a1918be + d417740 commit 75cfd19
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,9 @@ The `MessageRoutingCallback` is a strategy to assist with determining the name o
[source, java]
----
public interface MessageRoutingCallback {
FunctionRoutingResult routingResult(Message<?> message);
. . .
default String routingResult(Message<?> message) {
return (String) message.getHeaders().get(FunctionProperties.FUNCTION_DEFINITION);
}
}
----

Expand Down Expand Up @@ -739,4 +740,4 @@ private final static JsonMasker masker = JsonMasker.INSTANCE();
. . .
logger.info("Received: " + masker.mask(new String(payload, StandardCharsets.UTF_8)));
----
----
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
public interface MessageRoutingCallback {

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

0 comments on commit 75cfd19

Please sign in to comment.