EA-451928 - F: GroovyShortNamesCache.getClassesByFQName

GitOrigin-RevId: 51e81ec383e87596eddef0268a318232b3889f74
This commit is contained in:
Anna Kozlova
2022-06-29 08:37:34 +00:00
committed by intellij-monorepo-bot
parent 1796357cb5
commit 400781bc0a
@@ -1,4 +1,4 @@
// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.execution.testDiscovery.actions;
import com.intellij.codeInsight.actions.VcsFacadeImpl;
@@ -383,8 +383,8 @@ public class ShowAffectedTestsAction extends AnAction {
@NotNull List<String> filePaths,
@NotNull TestDiscoveryProducer.PsiTestProcessor processor) {
List<Couple<String>> classesAndMethods =
ReadAction.compute(() -> Arrays.stream(methods)
.map(method -> getMethodKey(method)).filter(Objects::nonNull).collect(Collectors.toList()));
ReadAction.nonBlocking(() -> Arrays.stream(methods)
.map(method -> getMethodKey(method)).filter(Objects::nonNull).collect(Collectors.toList())).executeSynchronously();
processTestDiscovery(project, processor, classesAndMethods, filePaths);
}