< prev index next >

test/lib/jdk/test/lib/containers/cgroup/CPUSetsReader.java

Print this page
@  rev 57735 : Review feedback 2
|
o  rev 57734 : Review feedback
|
~

@@ -53,11 +53,11 @@
         Asserts.assertEquals(listToString(parseCpuSet(cpuSet)), expectedResult);
     }
 
     public static int getNumCpus() {
         String path = "/proc/cpuinfo";
-        try(Stream<String> stream = Files.lines(Paths.get(path))) {
+        try (Stream<String> stream = Files.lines(Paths.get(path))) {
             return (int) stream.filter(line -> line.startsWith("processor")).count();
         } catch (IOException e) {
             return 0;
         }
     }
< prev index next >