Use StandardCharsets where possible
Closes gh-11036
This commit is contained in:
committed by
Stephane Nicoll
parent
bcab23e538
commit
1e4941e29a
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user