From 627a797d49f2d979f25986e8d678760bc0d655e8 Mon Sep 17 00:00:00 2001 From: Artem Bilan Date: Tue, 17 May 2022 15:04:21 -0400 Subject: [PATCH] GH-3800: Fix Kotlin docs for `route()` DSL Fixes https://github.com/spring-projects/spring-integration/issues/3800 * Mention `Message` as a type for reified generic argument in Kotlin DSL docs **Cherry-pick to `5.5.x`** --- .../integration/dsl/KotlinIntegrationFlowDefinition.kt | 4 ++-- src/reference/asciidoc/kotlin-dsl.adoc | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) 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.