mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
make FindManagerTest tolerate multithreaded search
This commit is contained in:
@@ -210,7 +210,7 @@ public class FindManagerTest extends DaemonAnalyzerTestCase {
|
||||
}
|
||||
|
||||
private List<UsageInfo> findUsages(@NotNull FindModel findModel) {
|
||||
List<UsageInfo> result = new ArrayList<>();
|
||||
List<UsageInfo> result = Collections.synchronizedList(new ArrayList<>());
|
||||
final CommonProcessors.CollectProcessor<UsageInfo> collector = new CommonProcessors.CollectProcessor<>(result);
|
||||
FindInProjectUtil.findUsages(findModel, myProject, collector, new FindUsagesProcessPresentation(FindInProjectUtil.setupViewPresentation(true, findModel)));
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user