invert if: don't reformat when if was removed completely

This commit is contained in:
Anna.Kozlova
2019-01-03 19:02:03 +01:00
parent 10208a6f2f
commit 8a6f1cb404
3 changed files with 21 additions and 5 deletions

View File

@@ -0,0 +1,11 @@
// "Invert 'if' condition" "true"
class A {
int test(int x) {
return switch (x) {
case 1:
if (Math.ran<caret>dom() > 0.5) {
br
}
};
}
}