From 1a29f95a65362c391b6513ce16a29a082becfd2b Mon Sep 17 00:00:00 2001 From: "Anna.Kozlova" Date: Mon, 4 Dec 2017 10:42:52 +0100 Subject: [PATCH] property testing: don't check comments fixes --- .../intellij/testFramework/propertyBased/InvokeIntention.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/testFramework/testSrc/com/intellij/testFramework/propertyBased/InvokeIntention.java b/platform/testFramework/testSrc/com/intellij/testFramework/propertyBased/InvokeIntention.java index f7dde2ad182e..edae4600fad4 100644 --- a/platform/testFramework/testSrc/com/intellij/testFramework/propertyBased/InvokeIntention.java +++ b/platform/testFramework/testSrc/com/intellij/testFramework/propertyBased/InvokeIntention.java @@ -90,7 +90,7 @@ public class InvokeIntention extends ActionOnRange { myInvocationLog += ", invoked '" + intention.getText() + "'"; String intentionString = intention.toString(); - boolean checkComments = myPolicy.checkComments(intention) && PsiTreeUtil.getParentOfType(file.findElementAt(offset), PsiComment.class) == null; + boolean checkComments = myPolicy.checkComments(intention) && PsiTreeUtil.getParentOfType(file.findElementAt(offset), PsiComment.class, false) == null; Collection comments = checkComments ? extractCommentsReformattedToSingleWhitespace(file) : Collections.emptyList();