mirror of
https://github.com/corda/corda.git
synced 2025-01-22 12:28:11 +00:00
changed String(byte[] bytes, String charsetName) to support only UTF-8
This commit is contained in:
parent
1f7f9319c3
commit
3001c2067c
@ -52,7 +52,7 @@ public final class String implements Comparable<String>, CharSequence {
|
|||||||
throws UnsupportedEncodingException
|
throws UnsupportedEncodingException
|
||||||
{
|
{
|
||||||
this(data);
|
this(data);
|
||||||
if (! charset.equals("US-ASCII")) {
|
if (! charset.equals("UTF-8")) {
|
||||||
throw new UnsupportedEncodingException(charset);
|
throw new UnsupportedEncodingException(charset);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user