mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-23 14:40:00 +00:00
Add missing @Override annotations
... and suppress "serial" warnings
This commit is contained in:
+1
-1
@@ -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 {
|
||||
|
||||
|
||||
+1
@@ -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,
|
||||
|
||||
+1
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user