mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
do not force rebuild in tests because of cyclic dependencies problem
This commit is contained in:
@@ -83,7 +83,12 @@ public class StubIndexImpl extends StubIndex implements ApplicationComponent, Pe
|
||||
needRebuild |= registerIndexer(extension, forceClean);
|
||||
}
|
||||
if (needRebuild) {
|
||||
forceRebuild(new Throwable());
|
||||
if (ApplicationManager.getApplication().isUnitTestMode()) {
|
||||
requestRebuild();
|
||||
}
|
||||
else {
|
||||
forceRebuild(new Throwable());
|
||||
}
|
||||
}
|
||||
dropUnregisteredIndices();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user