diff --git a/jps/jps-builders/src/org/jetbrains/jps/incremental/fs/FilesDelta.java b/jps/jps-builders/src/org/jetbrains/jps/incremental/fs/FilesDelta.java index a53d1381ac43..411774e29e81 100644 --- a/jps/jps-builders/src/org/jetbrains/jps/incremental/fs/FilesDelta.java +++ b/jps/jps-builders/src/org/jetbrains/jps/incremental/fs/FilesDelta.java @@ -176,6 +176,20 @@ public final class FilesDelta { } } + // used by Bazel + @SuppressWarnings("unused") + public void initRecompile(@NotNull Map> filesToRecompile) { + lockData(); + try { + assert this.filesToRecompile.isEmpty(); + assert this.deletedPaths.isEmpty(); + this.filesToRecompile.putAll(filesToRecompile); + } + finally { + unlockData(); + } + } + public boolean markRecompileIfNotDeleted(@NotNull BuildRootDescriptor root, @NotNull Path file) { lockData(); try { @@ -311,18 +325,4 @@ public final class FilesDelta { unlockData(); } } - - // used by Bazel - @SuppressWarnings("unused") - public void clearRecompile(@NotNull List roots) { - lockData(); - try { - for (BuildRootDescriptor root : roots) { - filesToRecompile.remove(root); - } - } - finally { - unlockData(); - } - } }