diff --git a/java/java-tests/testData/inspection/listRemoveInLoop/ListRemoveInLoop.java b/java/java-tests/testData/inspection/listRemoveInLoop/ListRemoveInLoop.java index 2803be1be75d..968120da15d2 100644 --- a/java/java-tests/testData/inspection/listRemoveInLoop/ListRemoveInLoop.java +++ b/java/java-tests/testData/inspection/listRemoveInLoop/ListRemoveInLoop.java @@ -4,7 +4,7 @@ class Test { void processList(List list, int start) { for(int i=start; iremove(i); + list.remove(i); } } } @@ -30,7 +30,7 @@ class Test { void processContinue(List list, int start) { for(int i=start; iremove(i); + list.remove(i); continue; } System.out.println(list.get(i)); @@ -52,7 +52,7 @@ class Test { void deleteTail(List list, int from) { for(int i=from; iremove(i); + list.remove(i); } } } \ No newline at end of file diff --git a/java/openapi/resources/messages/JavaBundle.properties b/java/openapi/resources/messages/JavaBundle.properties index 9f933bcde015..2423c98daedd 100644 --- a/java/openapi/resources/messages/JavaBundle.properties +++ b/java/openapi/resources/messages/JavaBundle.properties @@ -687,7 +687,7 @@ inspection.sorted.collection.with.non.comparable.keys.message=Construction of so inspection.sorted.collection.with.non.comparable.keys.option.type.parameters=Don't report non-comparable type parameters inspection.surround.if.family=Surround with if inspection.surround.if.quickfix=Surround with ''if ({0}{1})'' -inspection.suspicious.list.remove.display.name=Suspicious 'List.remove()' in the loop +inspection.suspicious.list.remove.display.name=Suspicious 'List.remove()' in loop inspection.switch.expression.backward.expression.migration.inspection.name='switch' expression can be replaced with old style 'switch' statement inspection.switch.expression.backward.migration.inspection.name=Enhanced 'switch' inspection.switch.expression.backward.statement.migration.inspection.name='switch' statement can be replaced with old style 'switch' statement