Skip to content

Kdoc for router function in KotlinDSL is refers to filter not router (KotlinIntegrationFlowDefinition) #3800

@frayneposset

Description

@frayneposset

In what version(s) of Spring Integration are you seeing this issue?

5.5.11

Describe the bug

The Kdoc for the following two functions appears to have been copy pasted from the filter Kdoc and not changed. See below.

	/**
	 * Inline function for [IntegrationFlowDefinition.filter] providing a `filter<MyTypeIn>()` variant
	 * with reified generic type.
	 */
	inline fun <reified P> route(crossinline function: (P) -> Any?) {
		route(function) { }
	}

	/**
	 * Inline function for [IntegrationFlowDefinition.filter] providing a `filter<MyTypeIn>()` variant
	 * with reified generic type.
	 */
	inline fun <reified P, T> route(
		crossinline function: (P) -> T,
		crossinline configurer: KotlinRouterSpec<T, MethodInvokingRouter>.() -> Unit
	) {

		this.delegate.route(P::class.java, { function(it) }) { configurer(KotlinRouterSpec(it)) }
	}

To Reproduce

N/A - documentation issue

Expected behavior

N/A - documentation issue

Sample

N/A - documentation issue

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions