DFA - removed smart pointers in the fix, changed naming and tests

GitOrigin-RevId: d136a7fee6bb26e8676d31d57a98f945959b3605
This commit is contained in:
Ilyas Selimov
2021-05-14 15:23:49 +07:00
committed by intellij-monorepo-bot
parent 8831fa0312
commit 85fd5fb24f
5 changed files with 27 additions and 18 deletions

View File

@@ -7,6 +7,9 @@ class Test {
public boolean c;
boolean test(@Nullable Boolean flag) {
return c ? b && Boolean.FALSE.equals(flag) : c;
/*a*/
/*b*/
/*c*/
return c ? b && Boolean.FALSE.equals(flag) : c;
}
}

View File

@@ -4,7 +4,7 @@ import org.jetbrains.annotations.Nullable;
class Test {
boolean test(@Nullable Boolean flag) {
if (Boolean.TRUE.equals(flag)) {
if (/*a*/Boolean.TRUE.equals(flag)/*b*/) {
System.out.println("ok");
}
return true;

View File

@@ -7,6 +7,6 @@ class Test {
public boolean c;
boolean test(@Nullable Boolean flag) {
return c ? b && !<caret>flag : c;
return c ? b && !/*a*/(/*b*/(/*c*/<caret>flag)) : c;
}
}

View File

@@ -4,7 +4,7 @@ import org.jetbrains.annotations.Nullable;
class Test {
boolean test(@Nullable Boolean flag) {
if (<caret>flag) {
if (/*a*/<caret>flag/*b*/) {
System.out.println("ok");
}
return true;