Spring cleaning: add missing @⁠Override annotations

This commit is contained in:
Sam Brannen
2024-02-23 11:55:06 +01:00
parent d0ffc16efc
commit c98bebd6d3
8 changed files with 10 additions and 0 deletions

View File

@@ -85,6 +85,7 @@ public final class ReactiveHttpRequestValues extends HttpRequestValues {
* <p>This is mutually exclusive with {@link #getBodyValue()}.
* Only one of the two or neither is set.
*/
@Override
@SuppressWarnings("removal")
@Nullable
public Publisher<?> getBody() {
@@ -94,6 +95,7 @@ public final class ReactiveHttpRequestValues extends HttpRequestValues {
/**
* Return the element type for a {@linkplain #getBodyPublisher() body publisher}.
*/
@Override
@SuppressWarnings("removal")
@Nullable
public ParameterizedTypeReference<?> getBodyElementType() {

View File

@@ -500,6 +500,7 @@ public class UriComponentsBuilder implements UriBuilder, Cloneable {
* @since 4.1
* @see UriComponents#toUriString()
*/
@Override
public String toUriString() {
return (this.uriVariables.isEmpty() ?
build().encode().toUriString() :