mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
optimization [approved by Jeka]
This commit is contained in:
@@ -176,6 +176,8 @@ public class FSOperations {
|
||||
}
|
||||
|
||||
public static void pruneEmptyDirs(CompileContext context, @Nullable final Set<File> dirsToDelete) {
|
||||
if (dirsToDelete == null || dirsToDelete.isEmpty()) return;
|
||||
|
||||
Set<File> doNotDelete = ALL_OUTPUTS_KEY.get(context);
|
||||
if (doNotDelete == null) {
|
||||
doNotDelete = new THashSet<File>(FileUtil.FILE_HASHING_STRATEGY);
|
||||
|
||||
Reference in New Issue
Block a user