Skip to content

Commit 216a266

Browse files
committed
Polish
1 parent bbabf8d commit 216a266

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed

spring-webflux/src/main/kotlin/org/springframework/web/reactive/function/server/CoRouterFunctionDsl.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,7 @@ class CoRouterFunctionDsl internal constructor (private val init: (CoRouterFunct
590590
* Add an attribute with the given name and value to the last route built with this builder.
591591
* @param name the attribute name
592592
* @param value the attribute value
593-
- * @since 5.3
593+
- * @since 6.0
594594
*/
595595
fun withAttribute(name: String, value: Any) {
596596
builder.withAttribute(name, value)
@@ -600,11 +600,11 @@ class CoRouterFunctionDsl internal constructor (private val init: (CoRouterFunct
600600
* Manipulate the attributes of the last route built with the given consumer.
601601
*
602602
* The map provided to the consumer is "live", so that the consumer can be used
603-
* to [overwrite][Map.put] existing attributes,
604-
* [remove][Map.remove] attributes, or use any of the other
605-
* [Map] methods.
603+
* to [overwrite][MutableMap.put] existing attributes,
604+
* [remove][MutableMap.remove] attributes, or use any of the other
605+
* [MutableMap] methods.
606606
* @param attributesConsumer a function that consumes the attributes map
607-
* @since 5.3
607+
* @since 6.0
608608
*/
609609
fun withAttributes(attributesConsumer: (MutableMap<String, Any>) -> Unit) {
610610
builder.withAttributes(attributesConsumer)

spring-webflux/src/main/kotlin/org/springframework/web/reactive/function/server/RouterFunctionDsl.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -706,7 +706,7 @@ class RouterFunctionDsl internal constructor (private val init: RouterFunctionDs
706706
* Add an attribute with the given name and value to the last route built with this builder.
707707
* @param name the attribute name
708708
* @param value the attribute value
709-
* @since 5.3
709+
* @since 6.0
710710
*/
711711
fun withAttribute(name: String, value: Any) {
712712
builder.withAttribute(name, value)
@@ -716,11 +716,11 @@ class RouterFunctionDsl internal constructor (private val init: RouterFunctionDs
716716
* Manipulate the attributes of the last route built with the given consumer.
717717
*
718718
* The map provided to the consumer is "live", so that the consumer can be used
719-
* to [overwrite][Map.put] existing attributes,
720-
* [remove][Map.remove] attributes, or use any of the other
721-
* [Map] methods.
719+
* to [overwrite][MutableMap.put] existing attributes,
720+
* [remove][MutableMap.remove] attributes, or use any of the other
721+
* [MutableMap] methods.
722722
* @param attributesConsumer a function that consumes the attributes map
723-
* @since 5.3
723+
* @since 6.0
724724
*/
725725
fun withAttributes(attributesConsumer: (MutableMap<String, Any>) -> Unit) {
726726
builder.withAttributes(attributesConsumer)

spring-webmvc/src/main/kotlin/org/springframework/web/servlet/function/RouterFunctionDsl.kt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import org.springframework.http.HttpMethod
2121
import org.springframework.http.HttpStatusCode
2222
import org.springframework.http.MediaType
2323
import java.net.URI
24-
import java.util.*
24+
import java.util.Optional
2525
import java.util.function.Supplier
2626

2727
/**
@@ -703,7 +703,7 @@ class RouterFunctionDsl internal constructor (private val init: (RouterFunctionD
703703
* Add an attribute with the given name and value to the last route built with this builder.
704704
* @param name the attribute name
705705
* @param value the attribute value
706-
* @since 5.3
706+
* @since 6.0
707707
*/
708708
fun withAttribute(name: String, value: Any) {
709709
builder.withAttribute(name, value)
@@ -713,11 +713,11 @@ class RouterFunctionDsl internal constructor (private val init: (RouterFunctionD
713713
* Manipulate the attributes of the last route built with the given consumer.
714714
*
715715
* The map provided to the consumer is "live", so that the consumer can be used
716-
* to [overwrite][Map.put] existing attributes,
717-
* [remove][Map.remove] attributes, or use any of the other
718-
* [Map] methods.
716+
* to [overwrite][MutableMap.put] existing attributes,
717+
* [remove][MutableMap.remove] attributes, or use any of the other
718+
* [MutableMap] methods.
719719
* @param attributesConsumer a function that consumes the attributes map
720-
* @since 5.3
720+
* @since 6.0
721721
*/
722722
fun withAttributes(attributesConsumer: (MutableMap<String, Any>) -> Unit) {
723723
builder.withAttributes(attributesConsumer)

0 commit comments

Comments
 (0)