From 216a26685681bde1a6bfe49a72eae64a1af9e0da Mon Sep 17 00:00:00 2001 From: Arjen Poutsma Date: Wed, 8 Jun 2022 17:00:58 +0200 Subject: [PATCH] Polish --- .../reactive/function/server/CoRouterFunctionDsl.kt | 10 +++++----- .../reactive/function/server/RouterFunctionDsl.kt | 10 +++++----- .../web/servlet/function/RouterFunctionDsl.kt | 12 ++++++------ 3 files changed, 16 insertions(+), 16 deletions(-) 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 ed84581601..a0e366b19d 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 @@ -590,7 +590,7 @@ class CoRouterFunctionDsl internal constructor (private val init: (CoRouterFunct * Add an attribute with the given name and value to the last route built with this builder. * @param name the attribute name * @param value the attribute value -- * @since 5.3 +- * @since 6.0 */ fun withAttribute(name: String, value: Any) { builder.withAttribute(name, value) @@ -600,11 +600,11 @@ class CoRouterFunctionDsl internal constructor (private val init: (CoRouterFunct * Manipulate the attributes of the last route built with the given consumer. * * The map provided to the consumer is "live", so that the consumer can be used - * to [overwrite][Map.put] existing attributes, - * [remove][Map.remove] attributes, or use any of the other - * [Map] methods. + * to [overwrite][MutableMap.put] existing attributes, + * [remove][MutableMap.remove] attributes, or use any of the other + * [MutableMap] methods. * @param attributesConsumer a function that consumes the attributes map - * @since 5.3 + * @since 6.0 */ fun withAttributes(attributesConsumer: (MutableMap) -> Unit) { builder.withAttributes(attributesConsumer) diff --git a/spring-webflux/src/main/kotlin/org/springframework/web/reactive/function/server/RouterFunctionDsl.kt b/spring-webflux/src/main/kotlin/org/springframework/web/reactive/function/server/RouterFunctionDsl.kt index c1df5a1b36..c6f35ac2f2 100644 --- a/spring-webflux/src/main/kotlin/org/springframework/web/reactive/function/server/RouterFunctionDsl.kt +++ b/spring-webflux/src/main/kotlin/org/springframework/web/reactive/function/server/RouterFunctionDsl.kt @@ -706,7 +706,7 @@ class RouterFunctionDsl internal constructor (private val init: RouterFunctionDs * Add an attribute with the given name and value to the last route built with this builder. * @param name the attribute name * @param value the attribute value - * @since 5.3 + * @since 6.0 */ fun withAttribute(name: String, value: Any) { builder.withAttribute(name, value) @@ -716,11 +716,11 @@ class RouterFunctionDsl internal constructor (private val init: RouterFunctionDs * Manipulate the attributes of the last route built with the given consumer. * * The map provided to the consumer is "live", so that the consumer can be used - * to [overwrite][Map.put] existing attributes, - * [remove][Map.remove] attributes, or use any of the other - * [Map] methods. + * to [overwrite][MutableMap.put] existing attributes, + * [remove][MutableMap.remove] attributes, or use any of the other + * [MutableMap] methods. * @param attributesConsumer a function that consumes the attributes map - * @since 5.3 + * @since 6.0 */ fun withAttributes(attributesConsumer: (MutableMap) -> Unit) { builder.withAttributes(attributesConsumer) diff --git a/spring-webmvc/src/main/kotlin/org/springframework/web/servlet/function/RouterFunctionDsl.kt b/spring-webmvc/src/main/kotlin/org/springframework/web/servlet/function/RouterFunctionDsl.kt index d5c0ecba00..f48f7ebdf7 100644 --- a/spring-webmvc/src/main/kotlin/org/springframework/web/servlet/function/RouterFunctionDsl.kt +++ b/spring-webmvc/src/main/kotlin/org/springframework/web/servlet/function/RouterFunctionDsl.kt @@ -21,7 +21,7 @@ import org.springframework.http.HttpMethod import org.springframework.http.HttpStatusCode import org.springframework.http.MediaType import java.net.URI -import java.util.* +import java.util.Optional import java.util.function.Supplier /** @@ -703,7 +703,7 @@ class RouterFunctionDsl internal constructor (private val init: (RouterFunctionD * Add an attribute with the given name and value to the last route built with this builder. * @param name the attribute name * @param value the attribute value - * @since 5.3 + * @since 6.0 */ fun withAttribute(name: String, value: Any) { builder.withAttribute(name, value) @@ -713,11 +713,11 @@ class RouterFunctionDsl internal constructor (private val init: (RouterFunctionD * Manipulate the attributes of the last route built with the given consumer. * * The map provided to the consumer is "live", so that the consumer can be used - * to [overwrite][Map.put] existing attributes, - * [remove][Map.remove] attributes, or use any of the other - * [Map] methods. + * to [overwrite][MutableMap.put] existing attributes, + * [remove][MutableMap.remove] attributes, or use any of the other + * [MutableMap] methods. * @param attributesConsumer a function that consumes the attributes map - * @since 5.3 + * @since 6.0 */ fun withAttributes(attributesConsumer: (MutableMap) -> Unit) { builder.withAttributes(attributesConsumer)