Browse Source

Remove outdated HandlerAdapter references from annotation javadoc

Includes removal of PathVariable's MultiValueMap support claim.

Issue: SPR-16936
pull/1876/head
Juergen Hoeller 8 years ago
parent
commit
a9dd927870
  1. 6
      spring-web/src/main/java/org/springframework/web/bind/annotation/PathVariable.java
  2. 3
      spring-web/src/main/java/org/springframework/web/bind/annotation/RequestBody.java
  3. 8
      spring-web/src/main/java/org/springframework/web/bind/annotation/RequestMapping.java

6
spring-web/src/main/java/org/springframework/web/bind/annotation/PathVariable.java

@ -1,5 +1,5 @@
/* /*
* Copyright 2002-2016 the original author or authors. * Copyright 2002-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -29,8 +29,7 @@ import org.springframework.core.annotation.AliasFor;
* variable. Supported for {@link RequestMapping} annotated handler methods in Servlet * variable. Supported for {@link RequestMapping} annotated handler methods in Servlet
* environments. * environments.
* *
* <p>If the method parameter is {@link java.util.Map Map&lt;String, String&gt;} or * <p>If the method parameter is {@link java.util.Map Map&lt;String, String&gt;}
* {@link org.springframework.util.MultiValueMap MultiValueMap&lt;String, String&gt;}
* then the map is populated with all path variable names and values. * then the map is populated with all path variable names and values.
* *
* @author Arjen Poutsma * @author Arjen Poutsma
@ -38,7 +37,6 @@ import org.springframework.core.annotation.AliasFor;
* @since 3.0 * @since 3.0
* @see RequestMapping * @see RequestMapping
* @see org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter * @see org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter
* @see org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter
*/ */
@Target(ElementType.PARAMETER) @Target(ElementType.PARAMETER)
@Retention(RetentionPolicy.RUNTIME) @Retention(RetentionPolicy.RUNTIME)

3
spring-web/src/main/java/org/springframework/web/bind/annotation/RequestBody.java

@ -1,5 +1,5 @@
/* /*
* Copyright 2002-2015 the original author or authors. * Copyright 2002-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -37,7 +37,6 @@ import org.springframework.http.converter.HttpMessageConverter;
* @see RequestHeader * @see RequestHeader
* @see ResponseBody * @see ResponseBody
* @see org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter * @see org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter
* @see org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter
*/ */
@Target(ElementType.PARAMETER) @Target(ElementType.PARAMETER)
@Retention(RetentionPolicy.RUNTIME) @Retention(RetentionPolicy.RUNTIME)

8
spring-web/src/main/java/org/springframework/web/bind/annotation/RequestMapping.java

@ -1,5 +1,5 @@
/* /*
* Copyright 2002-2016 the original author or authors. * Copyright 2002-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -329,9 +329,9 @@ public @interface RequestMapping {
/** /**
* In a Servlet environment only: the path mapping URIs (e.g. "/myPath.do"). * In a Servlet environment only: the path mapping URIs (e.g. "/myPath.do").
* Ant-style path patterns are also supported (e.g. "/myPath/*.do"). * Ant-style path patterns are also supported (e.g. "/myPath/*.do").
* At the method level, relative paths (e.g. "edit.do") are supported within * At the method level, relative paths (e.g. "edit.do") are supported
* the primary mapping expressed at the type level. Path mapping URIs may * within the primary mapping expressed at the type level.
* contain placeholders (e.g. "/${connect}") * Path mapping URIs may contain placeholders (e.g. "/${connect}").
* <p><b>Supported at the type level as well as at the method level!</b> * <p><b>Supported at the type level as well as at the method level!</b>
* When used at the type level, all method-level mappings inherit * When used at the type level, all method-level mappings inherit
* this primary mapping, narrowing it for a specific handler method. * this primary mapping, narrowing it for a specific handler method.

Loading…
Cancel
Save