Skip to content

Commit 0e734bd

Browse files
committed
Spotbugs: unnecessary boxing.
1 parent 184573a commit 0e734bd

File tree

1 file changed

+1
-1
lines changed
  • lib/src/main/java/com/diffplug/spotless

1 file changed

+1
-1
lines changed

lib/src/main/java/com/diffplug/spotless/Jvm.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ public int compare(V version0, V version1) {
242242

243243
private static <V> int[] convert(V versionObject) {
244244
try {
245-
return Arrays.asList(versionObject.toString().split("\\.")).stream().mapToInt(s -> Integer.valueOf(s)).toArray();
245+
return Arrays.asList(versionObject.toString().split("\\.")).stream().mapToInt(Integer::parseInt).toArray();
246246
} catch (Exception e) {
247247
throw new IllegalArgumentException(String.format("Not a semantic version: %s", versionObject), e);
248248
}

0 commit comments

Comments
 (0)