mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8273329: Remove redundant null check from String.getBytes(String charsetName)
Reviewed-by: rriggs, iris, naoto
This commit is contained in:
parent
cb112affd6
commit
e5f298a7f1
1 changed files with 0 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue