Update @since tags in HandlerMappingIntrospector & Co.

This commit is contained in:
Sam Brannen 2016-06-28 19:04:03 +02:00
parent db963bc556
commit 1a7c6d3b10
4 changed files with 13 additions and 8 deletions

View File

@ -13,6 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.web.servlet.support;
import java.io.IOException;
@ -44,14 +45,14 @@ import org.springframework.web.servlet.HandlerMapping;
*
* <p>Provides the following methods:
* <ul>
* <li>{@link #getMatchableHandlerMapping} -- obtain a {@code HandlerMapping}
* <li>{@link #getMatchableHandlerMapping} &mdash; obtain a {@code HandlerMapping}
* to check request-matching criteria against.
* <li>{@link #getCorsConfiguration} -- obtain the CORS configuration for the
* <li>{@link #getCorsConfiguration} &mdash; obtain the CORS configuration for the
* request.
* </ul>
*
* @author Rossen Stoyanchev
* @since 4.3
* @since 4.3.1
*/
public class HandlerMappingIntrospector implements CorsConfigurationSource {
@ -60,7 +61,7 @@ public class HandlerMappingIntrospector implements CorsConfigurationSource {
/**
* Constructor that detects the configured {@code HandlerMapping}s in the
* given {@code ApplicationContext} or falling back on
* given {@code ApplicationContext} or falls back on
* "DispatcherServlet.properties" like the {@code DispatcherServlet}.
*/
public HandlerMappingIntrospector(ApplicationContext context) {

View File

@ -13,6 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.web.servlet.support;
import javax.servlet.http.HttpServletRequest;
@ -25,7 +26,7 @@ import org.springframework.web.servlet.HandlerMapping;
* configuration and implementation.
*
* @author Rossen Stoyanchev
* @since 4.3
* @since 4.3.1
* @see HandlerMappingIntrospector
*/
public interface MatchableHandlerMapping {

View File

@ -13,6 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.web.servlet.support;
import java.util.Collections;
@ -27,7 +28,7 @@ import org.springframework.util.PathMatcher;
* variables from the pattern.
*
* @author Rossen Stoyanchev
* @since 4.3
* @since 4.3.1
*/
public class RequestMatchResult {

View File

@ -13,6 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.web.servlet.support;
import java.util.Arrays;
@ -37,7 +38,6 @@ import org.springframework.web.servlet.HandlerExecutionChain;
import org.springframework.web.servlet.HandlerMapping;
import org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping;
import org.springframework.web.servlet.handler.SimpleUrlHandlerMapping;
import org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping;
import org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping;
import static org.junit.Assert.assertEquals;
@ -48,6 +48,7 @@ import static org.springframework.web.servlet.HandlerMapping.BEST_MATCHING_PATTE
/**
* Unit tests for {@link HandlerMappingIntrospector}.
* @author Rossen Stoyanchev
* @since 4.3.1
*/
public class HandlerMappingIntrospectorTests {
@ -90,7 +91,8 @@ public class HandlerMappingIntrospectorTests {
List<HandlerMapping> actual = new HandlerMappingIntrospector(cxt).getHandlerMappings();
assertEquals(2, actual.size());
assertEquals(BeanNameUrlHandlerMapping.class, actual.get(0).getClass());
assertEquals(DefaultAnnotationHandlerMapping.class, actual.get(1).getClass());
assertEquals(org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping.class,
actual.get(1).getClass());
}
@Test