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:
Scott Mitchell 2014-09-10 17:40:58 -04:00 committed by Norman Maurer
parent b72a05edb4
commit 9b811a24e8

View File

@ -185,7 +185,7 @@ public abstract class HttpContentDecoder extends MessageToMessageDecoder<HttpObj
* @return the expected content encoding of the new content
*/
protected CharSequence getTargetContentEncoding(
@SuppressWarnings("unused") String contentEncoding) throws Exception {
@SuppressWarnings("UnusedParameters") String contentEncoding) throws Exception {
return HttpHeaders.Values.IDENTITY;
}