mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
javac ast indices: dirty scope calculation: fix case of empty dirty scope
This commit is contained in:
@@ -165,7 +165,9 @@ public class DirtyScopeHolder extends UserDataHolderBase {
|
||||
}
|
||||
|
||||
private GlobalSearchScope calculateDirtyScope() {
|
||||
GlobalSearchScope dirtyModuleScope = GlobalSearchScope.union(getAllDirtyModules()
|
||||
final Set<Module> dirtyModules = getAllDirtyModules();
|
||||
if (dirtyModules.isEmpty()) return myExcludedFilesScope;
|
||||
GlobalSearchScope dirtyModuleScope = GlobalSearchScope.union(dirtyModules
|
||||
.stream()
|
||||
.map(Module::getModuleWithDependentsScope)
|
||||
.toArray(GlobalSearchScope[]::new));
|
||||
|
||||
Reference in New Issue
Block a user