mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-10 13:17:09 +07:00
invert if: do not skip returns as they may contain valuable info (IDEA-61892)
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
// "Invert If Condition" "true"
|
||||
class Test {
|
||||
public static int create() {
|
||||
if (true) {
|
||||
return;
|
||||
}
|
||||
return "s";
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
// "Invert If Condition" "true"
|
||||
class Test {
|
||||
public static int create() {
|
||||
if (!tr<caret>ue) {
|
||||
return "s";
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user