8273329: Remove redundant null check from String.getBytes(String charsetName)
Reviewed-by: rriggs, iris, naoto
This commit is contained in:
parent
cb112affd6
commit
e5f298a7f1
@ -1752,7 +1752,6 @@ public final class String
|
||||
*/
|
||||
public byte[] getBytes(String charsetName)
|
||||
throws UnsupportedEncodingException {
|
||||
if (charsetName == null) throw new NullPointerException();
|
||||
return encode(lookupCharset(charsetName), coder(), value);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user