Add since and forRemoval to @Deprecated

This commit is contained in:
rstoyanchev
2025-01-16 11:29:35 +00:00
parent 5f6df35ec4
commit eb15b26abe
10 changed files with 51 additions and 55 deletions

View File

@@ -282,9 +282,9 @@ public final class MockServerHttpRequest extends AbstractServerHttpRequest {
/**
* Add the given header values.
* @param headers the header values
* @deprecated Use {@link #headers(HttpHeaders)}
* @deprecated in favor of {@link #headers(HttpHeaders)}
*/
@Deprecated
@Deprecated(since = "7.0", forRemoval = true)
B headers(MultiValueMap<String, String> headers);
/**
@@ -483,7 +483,7 @@ public final class MockServerHttpRequest extends AbstractServerHttpRequest {
}
@Override
@Deprecated
@Deprecated(since = "7.0", forRemoval = true)
public BodyBuilder headers(MultiValueMap<String, String> headers) {
this.headers.putAll(headers);
return this;