mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
detect duplicates: don't recognize duplicates which have different parenthesis
This commit is contained in:
@@ -138,6 +138,7 @@ class JavaParenthesesPolicy extends JavaIntentionPolicy {
|
||||
protected boolean shouldSkipIntention(@NotNull String actionText) {
|
||||
return actionText.equals("Add clarifying parentheses") ||
|
||||
actionText.equals("Remove unnecessary parentheses") ||
|
||||
actionText.equals("See other similar duplicates") ||
|
||||
actionText.matches("Simplify '\\(+(true|false)\\)+' to \\1") ||
|
||||
// Parenthesizing sub-expression causes cutting the action name at different position, so name changes significantly
|
||||
actionText.matches("Compute constant value of '.+'") ||
|
||||
|
||||
Reference in New Issue
Block a user