8263552: Use String.valueOf() for char-to-String conversions

Reviewed-by: redestad, vtewari, azvegint, chegar
This commit is contained in:
Sergey Tsypanov 2021-03-15 11:18:59 +00:00 committed by Claes Redestad
parent fac39fe97a
commit c0176c42dc
6 changed files with 6 additions and 6 deletions

View file

@ -57,7 +57,7 @@ public enum Wrapper {
this.wrapperType = wtype;
this.primitiveType = ptype;
this.basicTypeChar = tchar;
this.basicTypeString = new String(new char[] {this.basicTypeChar});
this.basicTypeString = String.valueOf(this.basicTypeChar);
this.emptyArray = emptyArray;
this.format = format;
this.wrapperSimpleName = wtypeName;