8267844: Replace Integer/Long.valueOf() with Integer/Long.parse*() where applicable

Reviewed-by: redestad
This commit is contained in:
Sergey Tsypanov 2021-08-12 10:03:52 +00:00 committed by Claes Redestad
parent d38b31438d
commit b29fbad940
6 changed files with 31 additions and 13 deletions

View file

@ -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