mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-25 14:25:04 +07:00
fix invert if followed by break bugs (IDEA-38798 & IDEA-112313)
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
// "Invert 'if' condition" "true"
|
||||
class A {
|
||||
public boolean accept() {
|
||||
boolean xx = true;
|
||||
switch (1) {
|
||||
case 0:
|
||||
if (!xx) {
|
||||
break;
|
||||
}
|
||||
else {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user