mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
invert if: don't leave trailing continue stmts (IDEA-197986)
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
// "Invert 'if' condition" "true"
|
||||
public class C {
|
||||
public void test() {
|
||||
for (int i = 0; i < 42; i++) {
|
||||
if (i != 7) {
|
||||
continue;
|
||||
}
|
||||
else {
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user