Correcting HttpDecoder SuppressWarnings parameter
Motiviation: The HttpContentDecoder.getTargetContentEncoding has a SuppressWarnings(unused) on its parameter. This should be SuppressWarnings(UnusedParameters). Modifications: SuppressWarnings(unused) -> SuppressWarnings(UnusedParameters) Result: Correctly suppressing warnings due to HttpContentDecoder.getTargetContentEncoding
This commit is contained in:
parent
b72a05edb4
commit
9b811a24e8
@ -185,7 +185,7 @@ public abstract class HttpContentDecoder extends MessageToMessageDecoder<HttpObj
|
|||||||
* @return the expected content encoding of the new content
|
* @return the expected content encoding of the new content
|
||||||
*/
|
*/
|
||||||
protected CharSequence getTargetContentEncoding(
|
protected CharSequence getTargetContentEncoding(
|
||||||
@SuppressWarnings("unused") String contentEncoding) throws Exception {
|
@SuppressWarnings("UnusedParameters") String contentEncoding) throws Exception {
|
||||||
return HttpHeaders.Values.IDENTITY;
|
return HttpHeaders.Values.IDENTITY;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user