mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
skip intentions which set temp code style settings and sweep away settings configured in tests
This commit is contained in:
@@ -69,6 +69,12 @@ class JavaIntentionPolicy extends IntentionPolicy {
|
||||
}
|
||||
|
||||
class JavaCommentingStrategy extends JavaIntentionPolicy {
|
||||
@Override
|
||||
protected boolean shouldSkipIntention(@NotNull String actionText) {
|
||||
return actionText.startsWith("Fix doc comment") || //change formatting settings
|
||||
actionText.startsWith("Add Javadoc");
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean checkComments(IntentionAction intention) {
|
||||
String intentionText = intention.getText();
|
||||
|
||||
Reference in New Issue
Block a user