< prev index next >

src/jdk.compiler/share/classes/com/sun/tools/sjavac/CompileJavaPackages.java

Print this page
@@ -206,11 +206,11 @@
  
          long start = System.currentTimeMillis();
  
          // Prepare compilation calls
          List<Callable<CompilationSubResult>> compilationCalls = new ArrayList<>();
-         final Object lock = new Object();
+         final Object lock = new Object() {};
          for (int i = 0; i < numCompiles; i++) {
              CompileChunk cc = compileChunks[i];
              if (cc.srcs.isEmpty()) {
                  continue;
              }
< prev index next >