mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +02:00
8274679: Remove unnecessary conversion to String in security code in java.base
Reviewed-by: weijun
This commit is contained in:
parent
76477f8cdb
commit
debaa28e9c
14 changed files with 48 additions and 55 deletions
|
@ -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();
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue