From 8494c7a75a0e5fcc1410b4ee335a8776a180de1b Mon Sep 17 00:00:00 2001 From: Sebastien Deleuze Date: Mon, 25 Mar 2019 09:33:03 +0100 Subject: [PATCH] Add missing KDoc comments --- .../web/reactive/function/server/CoRouterFunctionDsl.kt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/spring-webflux/src/main/kotlin/org/springframework/web/reactive/function/server/CoRouterFunctionDsl.kt b/spring-webflux/src/main/kotlin/org/springframework/web/reactive/function/server/CoRouterFunctionDsl.kt index b9108ab3de..db009813a5 100644 --- a/spring-webflux/src/main/kotlin/org/springframework/web/reactive/function/server/CoRouterFunctionDsl.kt +++ b/spring-webflux/src/main/kotlin/org/springframework/web/reactive/function/server/CoRouterFunctionDsl.kt @@ -395,6 +395,9 @@ open class CoRouterFunctionDsl(private val init: (CoRouterFunctionDsl.() -> Unit } } + /** + * Return a composed routing function created from all the registered routes. + */ override fun invoke(): RouterFunction { init() return builder.build() @@ -475,6 +478,9 @@ open class CoRouterFunctionDsl(private val init: (CoRouterFunctionDsl.() -> Unit } +/** + * Equivalent to [RouterFunction.and]. + */ operator fun RouterFunction.plus(other: RouterFunction) = this.and(other)