ExplicitArrayFillingInspection: better quick fix message

GitOrigin-RevId: b411271e0d9d4670630f6a54dd7fac7bf1423a68
This commit is contained in:
Artemiy Sartakov
2019-10-14 07:10:42 +00:00
committed by intellij-monorepo-bot
parent 2dfcb76473
commit dfd636746f
13 changed files with 14 additions and 13 deletions
@@ -67,7 +67,8 @@ public class ExplicitArrayFillingInspection extends AbstractBaseJavaLocalInspect
if (isDefaultValue(rValue, defaultValue, lType) && isFilledWithDefaultValues(container.getQualifier(), statement, defaultValue)) {
holder.registerProblem(statement, getRange(statement, ProblemHighlightType.WARNING),
InspectionsBundle.message("inspection.explicit.array.filling.redundant.loop.description"),
QuickFixFactory.getInstance().createDeleteFix(statement));
QuickFixFactory.getInstance()
.createDeleteFix(statement, CommonQuickFixBundle.message("fix.remove.statement", PsiKeyword.FOR)));
return;
}
registerProblem(statement, false);
@@ -1,4 +1,4 @@
// "Delete element" "true"
// "Remove 'for' statement" "true"
class Test {
@@ -1,4 +1,4 @@
// "Delete element" "true"
// "Remove 'for' statement" "true"
class Test {
@@ -1,4 +1,4 @@
// "Delete element" "true"
// "Remove 'for' statement" "true"
public class Test {
@@ -1,4 +1,4 @@
// "Delete element" "true"
// "Remove 'for' statement" "true"
public class Test {
@@ -1,4 +1,4 @@
// "Delete element" "true"
// "Remove 'for' statement" "true"
import java.util.Arrays;
import java.util.List;
@@ -1,4 +1,4 @@
// "Delete element" "true"
// "Remove 'for' statement" "true"
public class Test {
@@ -1,4 +1,4 @@
// "Delete element" "true"
// "Remove 'for' statement" "true"
class Test {
@@ -1,4 +1,4 @@
// "Delete element" "true"
// "Remove 'for' statement" "true"
class Test {
@@ -1,4 +1,4 @@
// "Delete element" "true"
// "Remove 'for' statement" "true"
public class Test {
@@ -1,4 +1,4 @@
// "Delete element" "true"
// "Remove 'for' statement" "true"
public class Test {
@@ -1,4 +1,4 @@
// "Delete element" "true"
// "Remove 'for' statement" "true"
import java.util.Arrays;
import java.util.List;
@@ -1,4 +1,4 @@
// "Delete element" "true"
// "Remove 'for' statement" "true"
public class Test {