mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +02:00
8263552: Use String.valueOf() for char-to-String conversions
Reviewed-by: redestad, vtewari, azvegint, chegar
This commit is contained in:
parent
fac39fe97a
commit
c0176c42dc
6 changed files with 6 additions and 6 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue