diff --git a/spring-integration-core/src/main/kotlin/org/springframework/integration/dsl/KotlinIntegrationFlowDefinition.kt b/spring-integration-core/src/main/kotlin/org/springframework/integration/dsl/KotlinIntegrationFlowDefinition.kt index 4ed915ad64..f044296a87 100644 --- a/spring-integration-core/src/main/kotlin/org/springframework/integration/dsl/KotlinIntegrationFlowDefinition.kt +++ b/spring-integration-core/src/main/kotlin/org/springframework/integration/dsl/KotlinIntegrationFlowDefinition.kt @@ -145,7 +145,7 @@ class KotlinIntegrationFlowDefinition(@PublishedApi internal val delegate: Integ /** - * Inline function for [IntegrationFlowDefinition.filter] providing a `filter()` variant + * Inline function for [IntegrationFlowDefinition.route] providing a `route()` variant * with reified generic type. */ inline fun route(crossinline function: (P) -> Any?) { @@ -153,7 +153,7 @@ class KotlinIntegrationFlowDefinition(@PublishedApi internal val delegate: Integ } /** - * Inline function for [IntegrationFlowDefinition.filter] providing a `filter()` variant + * Inline function for [IntegrationFlowDefinition.route] providing a `route()` variant * with reified generic type. */ inline fun route( diff --git a/src/reference/asciidoc/kotlin-dsl.adoc b/src/reference/asciidoc/kotlin-dsl.adoc index 976e568ae9..73f98e640a 100644 --- a/src/reference/asciidoc/kotlin-dsl.adoc +++ b/src/reference/asciidoc/kotlin-dsl.adoc @@ -93,4 +93,5 @@ fun convertFlow() = ---- ==== +NOTE: The reified type can be a whole `Message<*>` if there need access to headers as well in the lambda of the operator.