8274679: Remove unnecessary conversion to String in security code in java.base

Reviewed-by: weijun
This commit is contained in:
Andrey Turbanov 2022-01-10 15:02:57 +00:00 committed by Weijun Wang
parent 76477f8cdb
commit debaa28e9c
14 changed files with 48 additions and 55 deletions

View file

@ -2833,7 +2833,7 @@ public class Cipher {
break;
default:
// should never happen
sb.append("error:").append(Integer.toString(opmode));
sb.append("error:").append(opmode);
}
sb.append(", algorithm from: ").append(getProviderName());
return sb.toString();

View file

@ -395,7 +395,7 @@ final class CryptoPolicyParser {
switch (lookahead) {
case StreamTokenizer.TT_NUMBER:
throw new ParsingException(st.lineno(), expect,
"number "+String.valueOf(st.nval));
"number " + st.nval);
case StreamTokenizer.TT_EOF:
throw new ParsingException("expected "+expect+", read end of file");
case StreamTokenizer.TT_WORD: