Skip to content

Commit fbefe56

Browse files
committed
Fix incorrect method call which was causing unnecessary boxing & unboxing
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/codec/trunk@1333705 13f79535-47bb-0310-9956-ffa450edef68
1 parent 03d62b6 commit fbefe56

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/org/apache/commons/codec/digest/Sha2Crypt.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ private static String sha2Crypt(byte[] keyBytes, String salt, String saltPrefix,
139139
throw new IllegalArgumentException("Invalid salt value: " + salt);
140140
}
141141
if (m.group(3) != null) {
142-
rounds = Integer.valueOf(m.group(3));
142+
rounds = Integer.parseInt(m.group(3));
143143
rounds = Math.max(ROUNDS_MIN, Math.min(ROUNDS_MAX, rounds));
144144
roundsCustom = true;
145145
}

0 commit comments

Comments
 (0)