Skip to content

Commit 3279b70

Browse files
committed
Fix version checking for BLAS testing with JDK 8
1 parent 17b797f commit 3279b70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

blas/src/test/java/dev/ludovic/netlib/blas/BLASTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ private static Stream<Arguments> BLASImplementations() {
4949
);
5050

5151
String[] fullVersion = System.getProperty("java.version").split("[+.\\-]+", 2);
52-
int major = Integer.parseInt(fullVersion[0]);
52+
int major = Integer.parseInt(fullVersion[0]) > 1 ? Integer.parseInt(fullVersion[0]) : Integer.parseInt(fullVersion[0]);
5353
if (major >= 8) {
5454
instances = Stream.concat(instances, Stream.of(
5555
Arguments.of(dev.ludovic.netlib.blas.Java8BLAS.getInstance())

0 commit comments

Comments
 (0)