Consistent use of @Deprecated(since = "6.0")
This commit is contained in:
@@ -240,7 +240,7 @@ public final class MockServerHttpRequest extends AbstractServerHttpRequest {
|
||||
* @since 5.2.7
|
||||
* @deprecated as of Spring Framework 6.0 in favor of {@link #method(HttpMethod, String, Object...)}
|
||||
*/
|
||||
@Deprecated
|
||||
@Deprecated(since = "6.0")
|
||||
public static BodyBuilder method(String httpMethod, String uri, Object... vars) {
|
||||
Assert.isTrue(StringUtils.hasText(httpMethod), "HTTP method is required.");
|
||||
return new DefaultBodyBuilder(HttpMethod.valueOf(httpMethod), toUri(uri, vars));
|
||||
|
||||
@@ -57,7 +57,7 @@ public interface ContextLoader {
|
||||
* @deprecated as of Spring Framework 6.0, in favor of methods defined in the
|
||||
* {@link SmartContextLoader} SPI
|
||||
*/
|
||||
@Deprecated
|
||||
@Deprecated(since = "6.0")
|
||||
String[] processLocations(Class<?> clazz, String... locations);
|
||||
|
||||
/**
|
||||
@@ -84,7 +84,7 @@ public interface ContextLoader {
|
||||
* @deprecated as of Spring Framework 6.0, in favor of methods defined in the
|
||||
* {@link SmartContextLoader} SPI
|
||||
*/
|
||||
@Deprecated
|
||||
@Deprecated(since = "6.0")
|
||||
ApplicationContext loadContext(String... locations) throws Exception;
|
||||
|
||||
}
|
||||
|
||||
@@ -256,7 +256,7 @@ public abstract class AbstractGenericContextLoader extends AbstractContextLoader
|
||||
* @see #loadContext(MergedContextConfiguration)
|
||||
* @deprecated as of Spring Framework 6.0, in favor of {@link #loadContext(MergedContextConfiguration)}
|
||||
*/
|
||||
@Deprecated
|
||||
@Deprecated(since = "6.0")
|
||||
@Override
|
||||
public final ConfigurableApplicationContext loadContext(String... locations) throws Exception {
|
||||
if (logger.isDebugEnabled()) {
|
||||
|
||||
@@ -181,7 +181,7 @@ public class ExchangeResult {
|
||||
* @since 5.1.10
|
||||
* @deprecated as of 6.0, in favor of {@link #getStatus()}
|
||||
*/
|
||||
@Deprecated
|
||||
@Deprecated(since = "6.0")
|
||||
public int getRawStatusCode() {
|
||||
return this.response.getRawStatusCode();
|
||||
}
|
||||
|
||||
@@ -361,7 +361,7 @@ public interface MockMvcWebTestClient {
|
||||
* @deprecated as of 6.0, see
|
||||
* {@link PathPatternParser#setMatchOptionalTrailingSeparator(boolean)}
|
||||
*/
|
||||
@Deprecated
|
||||
@Deprecated(since = "6.0")
|
||||
ControllerSpec useTrailingSlashPatternMatch(boolean useTrailingSlashPatternMatch);
|
||||
|
||||
/**
|
||||
|
||||
@@ -345,7 +345,7 @@ public class StandaloneMockMvcBuilder extends AbstractMockMvcBuilder<StandaloneM
|
||||
* @deprecated as of 6.0, see
|
||||
* {@link PathPatternParser#setMatchOptionalTrailingSeparator(boolean)}
|
||||
*/
|
||||
@Deprecated
|
||||
@Deprecated(since = "6.0")
|
||||
public StandaloneMockMvcBuilder setUseTrailingSlashPatternMatch(boolean useTrailingSlashPatternMatch) {
|
||||
this.useTrailingSlashPatternMatch = useTrailingSlashPatternMatch;
|
||||
return this;
|
||||
|
||||
Reference in New Issue
Block a user