From 400781bc0ae391f4e441da8346b2302751b5190f Mon Sep 17 00:00:00 2001 From: Anna Kozlova Date: Tue, 28 Jun 2022 16:27:05 +0200 Subject: [PATCH] EA-451928 - F: GroovyShortNamesCache.getClassesByFQName GitOrigin-RevId: 51e81ec383e87596eddef0268a318232b3889f74 --- .../testDiscovery/actions/ShowAffectedTestsAction.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/java/execution/impl/src/com/intellij/execution/testDiscovery/actions/ShowAffectedTestsAction.java b/java/execution/impl/src/com/intellij/execution/testDiscovery/actions/ShowAffectedTestsAction.java index 4137c0a25933..1a64aafadac6 100644 --- a/java/execution/impl/src/com/intellij/execution/testDiscovery/actions/ShowAffectedTestsAction.java +++ b/java/execution/impl/src/com/intellij/execution/testDiscovery/actions/ShowAffectedTestsAction.java @@ -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 filePaths, @NotNull TestDiscoveryProducer.PsiTestProcessor processor) { List> 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); }