Use StandardCharsets where possible

Closes gh-11036
This commit is contained in:
dreis2211
2017-11-15 19:00:31 +01:00
committed by Stephane Nicoll
parent bcab23e538
commit 1e4941e29a
8 changed files with 21 additions and 11 deletions

View File

@@ -94,6 +94,10 @@ public class JavaCompilerFieldValuesParser implements FieldValuesParser {
Map<String, Object> values = new HashMap<>();
values.put("Boolean.TRUE", true);
values.put("Boolean.FALSE", false);
values.put("StandardCharsets.ISO_8859_1", "ISO-8859-1");
values.put("StandardCharsets.UTF_8", "UTF-8");
values.put("StandardCharsets.UTF_16", "UTF-16");
values.put("StandardCharsets.US_ASCII", "US-ASCII");
wellKnownStaticFinals = Collections.unmodifiableMap(values);
}