--- old/test/lib/jdk/test/lib/containers/cgroup/CPUSetsReader.java 2020-02-18 11:57:36.034723461 +0100 +++ new/test/lib/jdk/test/lib/containers/cgroup/CPUSetsReader.java 2020-02-18 11:57:35.896723207 +0100 @@ -55,7 +55,7 @@ public static int getNumCpus() { String path = "/proc/cpuinfo"; - try(Stream stream = Files.lines(Paths.get(path))) { + try (Stream stream = Files.lines(Paths.get(path))) { return (int) stream.filter(line -> line.startsWith("processor")).count(); } catch (IOException e) { return 0;