Skip to content

Commit

Permalink
Fix obscure TreeMap instantiation in Charset.
Browse files Browse the repository at this point in the history
Change-Id: I920911edc367b7b6f1f958b76dab6b526188345d
  • Loading branch information
korzha committed Mar 8, 2016
1 parent b2b6ed0 commit 21a0b30
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public abstract class Charset implements Comparable<Charset> {
private static final class AvailableCharsets {
private static final SortedMap<String, Charset> CHARSETS;
static {
SortedMap<String, Charset> map = new TreeMap<String, Charset>() { };
SortedMap<String, Charset> map = new TreeMap<>();
map.put(EmulatedCharset.ISO_8859_1.name(), EmulatedCharset.ISO_8859_1);
map.put(EmulatedCharset.ISO_LATIN_1.name(), EmulatedCharset.ISO_LATIN_1);
map.put(EmulatedCharset.UTF_8.name(), EmulatedCharset.UTF_8);
Expand Down

0 comments on commit 21a0b30

Please sign in to comment.