Suppress warnings, remove unused code, etc.
This commit is contained in:
@@ -267,6 +267,7 @@ class BaseDefaultCodecs implements CodecConfigurer.DefaultCodecs, CodecConfigure
|
||||
* if configured by the application, to the given codec , including any
|
||||
* codec it contains.
|
||||
*/
|
||||
@SuppressWarnings("rawtypes")
|
||||
private void initCodec(@Nullable Object codec) {
|
||||
|
||||
if (codec instanceof DecoderHttpMessageReader) {
|
||||
|
||||
@@ -181,16 +181,6 @@ public class ShallowEtagHeaderFilter extends OncePerRequestFilter {
|
||||
return builder.toString();
|
||||
}
|
||||
|
||||
private boolean compareETagHeaderValue(String requestETag, String responseETag) {
|
||||
if (requestETag.startsWith("W/")) {
|
||||
requestETag = requestETag.substring(2);
|
||||
}
|
||||
if (responseETag.startsWith("W/")) {
|
||||
responseETag = responseETag.substring(2);
|
||||
}
|
||||
return requestETag.equals(responseETag);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* This method can be used to suppress the content caching response wrapper
|
||||
|
||||
Reference in New Issue
Block a user