mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
better inspection name
GitOrigin-RevId: d95535ca7077638747428a79348dfcbc0038f39e
This commit is contained in:
committed by
intellij-monorepo-bot
parent
dba3752c8a
commit
8a404b9c55
@@ -4,7 +4,7 @@ class Test {
|
||||
void processList(List<String> list, int start) {
|
||||
for(int i=start; i<list.size(); i++) {
|
||||
if(list.get(i).isEmpty()) {
|
||||
list.<warning descr="Suspicious 'List.remove()' in the loop">remove</warning>(i);
|
||||
list.<warning descr="Suspicious 'List.remove()' in loop">remove</warning>(i);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -30,7 +30,7 @@ class Test {
|
||||
void processContinue(List<String> list, int start) {
|
||||
for(int i=start; i<list.size(); i++) {
|
||||
if(list.get(i).isEmpty()) {
|
||||
list.<warning descr="Suspicious 'List.remove()' in the loop">remove</warning>(i);
|
||||
list.<warning descr="Suspicious 'List.remove()' in loop">remove</warning>(i);
|
||||
continue;
|
||||
}
|
||||
System.out.println(list.get(i));
|
||||
@@ -52,7 +52,7 @@ class Test {
|
||||
|
||||
void deleteTail(List<String> list, int from) {
|
||||
for(int i=from; i<list.size(); i++) {
|
||||
list.<warning descr="Suspicious 'List.remove()' in the loop">remove</warning>(i);
|
||||
list.<warning descr="Suspicious 'List.remove()' in loop">remove</warning>(i);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user