Add missing @⁠Override annotations

... and suppress "serial" warnings
This commit is contained in:
Sam Brannen
2025-09-22 13:20:37 +02:00
parent f504d051ab
commit 0c61ac956b
42 changed files with 44 additions and 5 deletions
@@ -23,7 +23,6 @@ import java.util.regex.Pattern;
import org.springframework.http.ResponseCookie;
/**
* Parser that delegates to {@link java.net.HttpCookie#parse(String)} for parsing,
* but also extracts and sets {@code sameSite}.
@@ -39,6 +38,7 @@ final class JdkResponseCookieParser implements ResponseCookie.Parser {
/**
* Parse the given headers.
*/
@Override
public List<ResponseCookie> parse(String header) {
Matcher matcher = SAME_SITE_PATTERN.matcher(header);
String sameSite = (matcher.matches() ? matcher.group(1) : null);
@@ -163,6 +163,7 @@ public class DefaultApiVersionStrategy implements ApiVersionStrategy {
return this.versionParser.parseVersion(version);
}
@Override
public void validateVersion(@Nullable Comparable<?> requestVersion, HttpServletRequest request)
throws MissingApiVersionException, InvalidApiVersionException {
@@ -84,6 +84,7 @@ final class DefaultApiVersionInserterBuilder implements ApiVersionInserter.Build
return this;
}
@Override
public ApiVersionInserter build() {
return new DefaultApiVersionInserter(
this.header, this.queryParam, this.mediaTypeParam, this.pathSegmentIndex,
@@ -389,6 +389,7 @@ public class StandardServletAsyncWebRequest extends ServletWebRequest implements
}
}
@Override
public void write(byte[] buf, int offset, int len) throws IOException {
int level = this.response.obtainLockOrRaiseException();
try {