From 8c5ad98e3ad82021b05546a0b4d95ccefb89df2b Mon Sep 17 00:00:00 2001 From: "Anna.Kozlova" Date: Mon, 16 Apr 2018 19:59:45 +0200 Subject: [PATCH] test navigation: ignore whitespaces in signatures IDEA-189535 --- .../com/intellij/execution/testframework/JavaTestLocator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/execution/impl/src/com/intellij/execution/testframework/JavaTestLocator.java b/java/execution/impl/src/com/intellij/execution/testframework/JavaTestLocator.java index daf085ae662c..cfcc53a22abc 100644 --- a/java/execution/impl/src/com/intellij/execution/testframework/JavaTestLocator.java +++ b/java/execution/impl/src/com/intellij/execution/testframework/JavaTestLocator.java @@ -84,7 +84,7 @@ public class JavaTestLocator implements SMTestLocator { for (Location location : locations) { PsiElement element = location.getPsiElement(); if (element instanceof PsiMethod) { - if (metainfo.equals(ClassUtil.getVMParametersMethodSignature((PsiMethod)element))) { + if (StringUtil.equalsIgnoreWhitespaces(metainfo, ClassUtil.getVMParametersMethodSignature((PsiMethod)element))) { return Collections.singletonList(location); } }