From 081c6463e9a113a4f91d74537f551c78216cb748 Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Sat, 16 Apr 2022 17:57:33 +0200 Subject: [PATCH] Polish Javadoc for PathVariableMapMethodArgumentResolver --- .../annotation/PathVariableMapMethodArgumentResolver.java | 6 +++--- .../annotation/PathVariableMapMethodArgumentResolver.java | 7 ++++--- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/spring-webflux/src/main/java/org/springframework/web/reactive/result/method/annotation/PathVariableMapMethodArgumentResolver.java b/spring-webflux/src/main/java/org/springframework/web/reactive/result/method/annotation/PathVariableMapMethodArgumentResolver.java index adfb19d8cd..c78bf6cb3c 100644 --- a/spring-webflux/src/main/java/org/springframework/web/reactive/result/method/annotation/PathVariableMapMethodArgumentResolver.java +++ b/spring-webflux/src/main/java/org/springframework/web/reactive/result/method/annotation/PathVariableMapMethodArgumentResolver.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2018 the original author or authors. + * Copyright 2002-2022 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -30,9 +30,9 @@ import org.springframework.web.reactive.result.method.SyncHandlerMethodArgumentR import org.springframework.web.server.ServerWebExchange; /** - * Resolver for {@link Map} method arguments also annotated with + * Resolver for {@link Map} method arguments annotated with * {@link PathVariable @PathVariable} where the annotation does not specify a - * path variable name. The resulting {@link Map} argument is a coyp of all URI + * path variable name. The resulting {@link Map} argument is a copy of all URI * template name-value pairs. * * @author Rossen Stoyanchev diff --git a/spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/PathVariableMapMethodArgumentResolver.java b/spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/PathVariableMapMethodArgumentResolver.java index bbfd5a54d3..57486ff311 100644 --- a/spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/PathVariableMapMethodArgumentResolver.java +++ b/spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/PathVariableMapMethodArgumentResolver.java @@ -32,9 +32,10 @@ import org.springframework.web.method.support.ModelAndViewContainer; import org.springframework.web.servlet.HandlerMapping; /** - * Resolves {@link Map} method arguments annotated with an @{@link PathVariable} - * where the annotation does not specify a path variable name. The created - * {@link Map} contains all URI template name/value pairs. + * Resolves {@link Map} method arguments annotated with + * {@link PathVariable @PathVariable} where the annotation does not specify a + * path variable name. The resulting {@link Map} argument is a copy of all URI + * template name-value pairs. * * @author Rossen Stoyanchev * @since 3.2