mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
dfa: expand contract test
This commit is contained in:
@@ -6,14 +6,22 @@ import java.lang.AssertionError;
|
||||
import java.lang.IllegalArgumentException;
|
||||
|
||||
public class AssertIsNotNull {
|
||||
void bar(String s) {
|
||||
void bar(String s, String s1) {
|
||||
if (<warning descr="Condition 's == null && trimIfNotNull(s) != null' is always 'false'">s == null && <warning descr="Condition 'trimIfNotNull(s) != null' is always 'false' when reached">trimIfNotNull(s) != null</warning></warning>) {
|
||||
throw new AssertionError();
|
||||
}
|
||||
|
||||
final Object o = call();
|
||||
assertIsNotNull(o);
|
||||
System.out.println(o.toString());
|
||||
if(<warning descr="Condition 'o == null' is always 'false'">o == null</warning>) {}
|
||||
|
||||
if (trimIfNotNull(s1) != null) {
|
||||
System.out.println(s1.charAt(0));
|
||||
if (<warning descr="Condition 's1 == null' is always 'false'">s1 == null</warning>) {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Contract("null -> fail")
|
||||
|
||||
Reference in New Issue
Block a user