Consistent use of @Deprecated(since = "6.0")

This commit is contained in:
Sam Brannen
2022-09-20 14:32:27 +02:00
parent 91bca55cbf
commit 321092ce6f
101 changed files with 174 additions and 174 deletions

View File

@@ -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));

View File

@@ -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;
}

View File

@@ -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()) {

View File

@@ -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();
}

View File

@@ -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);
/**

View File

@@ -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;