mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
property testing: don't check comments fixes
This commit is contained in:
+1
-1
@@ -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<String> comments = checkComments
|
||||
? extractCommentsReformattedToSingleWhitespace(file)
|
||||
: Collections.emptyList();
|
||||
|
||||
Reference in New Issue
Block a user