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

@ -452,7 +452,7 @@ final class CryptoPolicyParser {
break;
default:
throw new ParsingException(st.lineno(), expect,
new String(new char[] {(char)lookahead}));
String.valueOf((char)lookahead));
}
return value;
}