Remove unecessary .name() on Charset in String methods
This commit is contained in:
parent
a690166c77
commit
b05fe03615
@ -268,10 +268,10 @@ public abstract class AbstractDiskHttpData extends AbstractHttpData {
|
||||
}
|
||||
if (encoding == null) {
|
||||
byte[] array = readFrom(file);
|
||||
return new String(array, HttpCodecUtil.DEFAULT_CHARSET.name());
|
||||
return new String(array, HttpCodecUtil.DEFAULT_CHARSET);
|
||||
}
|
||||
byte[] array = readFrom(file);
|
||||
return new String(array, encoding.name());
|
||||
return new String(array, encoding);
|
||||
}
|
||||
|
||||
public boolean isInMemory() {
|
||||
|
Loading…
Reference in New Issue
Block a user