Avoid using deprecated methods in StringEncoder

This commit is contained in:
Sebastien Deleuze
2016-06-20 13:28:59 +02:00
parent 551b7cd60e
commit 5141a198d9

View File

@@ -53,8 +53,8 @@ public class StringEncoder extends AbstractEncoder<String> {
DataBufferFactory bufferFactory, ResolvableType elementType, MimeType mimeType,
Object... hints) {
Charset charset;
if (mimeType != null && mimeType.getCharSet() != null) {
charset = mimeType.getCharSet();
if (mimeType != null && mimeType.getCharset() != null) {
charset = mimeType.getCharset();
}
else {
charset = DEFAULT_CHARSET;