Skip to content
Browse files
8273329: Remove redundant null check from String.getBytes(String char…

Reviewed-by: rriggs, iris, naoto
  • Loading branch information
stsypanov authored and naotoj committed Sep 8, 2021
1 parent cb112af commit e5f298a7f1f3106b72e43c152c090af1657485f0
Showing 1 changed file with 0 additions and 1 deletion.
@@ -1752,7 +1752,6 @@ public void getBytes(int srcBegin, int srcEnd, byte[] dst, int dstBegin) {
public byte[] getBytes(String charsetName)
throws UnsupportedEncodingException {
if (charsetName == null) throw new NullPointerException();
return encode(lookupCharset(charsetName), coder(), value);

1 comment on commit e5f298a

Copy link

@openjdk-notifier openjdk-notifier bot commented on e5f298a Sep 8, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.