DuplicateStringLiteralInspection: "Navigate to occurrences" doesn't need write action

This commit is contained in:
peter
2017-07-22 08:08:18 +02:00
parent 08656aebb5
commit 510fda4cc4
@@ -424,10 +424,15 @@ public class DuplicateStringLiteralInspection extends BaseLocalInspectionTool {
}
private class NavigateToOccurrencesFix extends LocalQuickFixOnPsiElement {
public NavigateToOccurrencesFix(PsiLiteralExpression representative) {
NavigateToOccurrencesFix(PsiLiteralExpression representative) {
super(representative);
}
@Override
public boolean startInWriteAction() {
return false;
}
@Override
public void invoke(@NotNull Project project, @NotNull PsiFile file, @NotNull PsiElement startElement, @NotNull PsiElement endElement) {
if (!(startElement instanceof PsiLiteralExpression)) return;