Add missing "since" in @Deprecated
See gh-34942 Signed-off-by: Yanming Zhou <zhouyanming@gmail.com>
This commit is contained in:
committed by
rstoyanchev
parent
b7dfd68d89
commit
f9fa7cc93b
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2020 the original author or authors.
|
||||
* Copyright 2002-2025 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.
|
||||
@@ -74,7 +74,7 @@ public interface HandlerMapping {
|
||||
* To access the cached path used for request mapping, use
|
||||
* {@link org.springframework.web.util.ServletRequestPathUtils#getCachedPathValue(ServletRequest)}.
|
||||
*/
|
||||
@Deprecated
|
||||
@Deprecated(since = "5.3")
|
||||
String LOOKUP_PATH = HandlerMapping.class.getName() + ".lookupPath";
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
* Copyright 2002-2025 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.
|
||||
@@ -111,7 +111,7 @@ public class WebContentInterceptor extends WebContentGenerator implements Handle
|
||||
* @deprecated as of 5.3, the path is resolved externally and obtained with
|
||||
* {@link ServletRequestPathUtils#getCachedPathValue(ServletRequest)}
|
||||
*/
|
||||
@Deprecated
|
||||
@Deprecated(since = "5.3")
|
||||
public void setAlwaysUseFullPath(boolean alwaysUseFullPath) {
|
||||
}
|
||||
|
||||
@@ -122,7 +122,7 @@ public class WebContentInterceptor extends WebContentGenerator implements Handle
|
||||
* @deprecated as of 5.3, the path is resolved externally and obtained with
|
||||
* {@link ServletRequestPathUtils#getCachedPathValue(ServletRequest)}
|
||||
*/
|
||||
@Deprecated
|
||||
@Deprecated(since = "5.3")
|
||||
public void setUrlDecode(boolean urlDecode) {
|
||||
}
|
||||
|
||||
@@ -131,7 +131,7 @@ public class WebContentInterceptor extends WebContentGenerator implements Handle
|
||||
* @deprecated as of 5.3, the path is resolved externally and obtained with
|
||||
* {@link ServletRequestPathUtils#getCachedPathValue(ServletRequest)}
|
||||
*/
|
||||
@Deprecated
|
||||
@Deprecated(since = "5.3")
|
||||
public void setUrlPathHelper(UrlPathHelper urlPathHelper) {
|
||||
}
|
||||
|
||||
|
||||
@@ -117,7 +117,7 @@ public final class RequestMappingInfo implements RequestCondition<RequestMapping
|
||||
* {@link #paths(String...)}.
|
||||
*/
|
||||
@SuppressWarnings("removal")
|
||||
@Deprecated
|
||||
@Deprecated(since = "5.3")
|
||||
public RequestMappingInfo(@Nullable String name, @Nullable PatternsRequestCondition patterns,
|
||||
@Nullable RequestMethodsRequestCondition methods, @Nullable ParamsRequestCondition params,
|
||||
@Nullable HeadersRequestCondition headers, @Nullable ConsumesRequestCondition consumes,
|
||||
@@ -142,7 +142,7 @@ public final class RequestMappingInfo implements RequestCondition<RequestMapping
|
||||
* {@link #paths(String...)}.
|
||||
*/
|
||||
@SuppressWarnings("removal")
|
||||
@Deprecated
|
||||
@Deprecated(since = "5.3")
|
||||
public RequestMappingInfo(@Nullable PatternsRequestCondition patterns,
|
||||
@Nullable RequestMethodsRequestCondition methods, @Nullable ParamsRequestCondition params,
|
||||
@Nullable HeadersRequestCondition headers, @Nullable ConsumesRequestCondition consumes,
|
||||
@@ -156,7 +156,7 @@ public final class RequestMappingInfo implements RequestCondition<RequestMapping
|
||||
* Re-create a RequestMappingInfo with the given custom request condition.
|
||||
* @deprecated since 5.3 in favor of using {@link #addCustomCondition(RequestCondition)}.
|
||||
*/
|
||||
@Deprecated
|
||||
@Deprecated(since = "5.3")
|
||||
public RequestMappingInfo(RequestMappingInfo info, @Nullable RequestCondition<?> customRequestCondition) {
|
||||
this(info.name, info.patternsCondition, info.methodsCondition, info.paramsCondition,
|
||||
info.headersCondition, info.consumesCondition, info.producesCondition,
|
||||
@@ -986,7 +986,7 @@ public final class RequestMappingInfo implements RequestCondition<RequestMapping
|
||||
* @deprecated as of 5.3, the path is resolved externally and obtained with
|
||||
* {@link ServletRequestPathUtils#getCachedPathValue(ServletRequest)}
|
||||
*/
|
||||
@Deprecated
|
||||
@Deprecated(since = "5.3")
|
||||
public void setUrlPathHelper(@Nullable UrlPathHelper urlPathHelper) {
|
||||
}
|
||||
|
||||
@@ -996,7 +996,7 @@ public final class RequestMappingInfo implements RequestCondition<RequestMapping
|
||||
* {@link ServletRequestPathUtils#getCachedPathValue(ServletRequest)};
|
||||
* this method always returns {@link UrlPathHelper#defaultInstance}.
|
||||
*/
|
||||
@Deprecated
|
||||
@Deprecated(since = "5.3")
|
||||
public @Nullable UrlPathHelper getUrlPathHelper() {
|
||||
return UrlPathHelper.defaultInstance;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user