mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 00:11:26 +07:00
DFA Optional.orElse handling improved (splitting states)
This commit is contained in:
@@ -42,4 +42,11 @@ class OptionalOrElse {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
void isPresentCheck(Optional<String> opt) {
|
||||
String result = opt.orElse(null);
|
||||
if(<warning descr="Condition 'result == null && opt.isPresent()' is always 'false'">result == null && <warning descr="Condition 'opt.isPresent()' is always 'false' when reached">opt.isPresent()</warning></warning>) {
|
||||
System.out.println("Impossible");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user