Skip to content

Commit

Permalink
Remove unecessary .name() on Charset in String methods
Browse files Browse the repository at this point in the history
  • Loading branch information
fredericBregier committed May 10, 2012
1 parent a690166 commit b05fe03
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -268,10 +268,10 @@ public String getString(Charset encoding) throws IOException {
}
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() {
Expand Down

0 comments on commit b05fe03

Please sign in to comment.