mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +02:00
8267844: Replace Integer/Long.valueOf() with Integer/Long.parse*() where applicable
Reviewed-by: redestad
This commit is contained in:
parent
d38b31438d
commit
b29fbad940
6 changed files with 31 additions and 13 deletions
|
@ -201,8 +201,7 @@ final class CipherCore {
|
|||
if (mode.length() > offset) {
|
||||
int numInt;
|
||||
try {
|
||||
Integer num = Integer.valueOf(mode.substring(offset));
|
||||
numInt = num.intValue();
|
||||
numInt = Integer.parseInt(mode.substring(offset));
|
||||
result = numInt >> 3;
|
||||
} catch (NumberFormatException e) {
|
||||
throw new NoSuchAlgorithmException
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue