IG: fix test data

This commit is contained in:
Bas Leijdekkers
2017-10-04 08:49:08 +02:00
parent 6894f67631
commit c88c0f8485
@@ -26,13 +26,13 @@ public class PointlessNullCheck {
String arg1 = "foo";
public void testMethods(Object obj, Object obj1, Object obj2) {
if(<warning descr="Unnecessary 'null' check before 'check' call">obj != null</warning> && check(obj)) {
if(<warning descr="Unnecessary 'null' check before 'check()' call">obj != null</warning> && check(obj)) {
System.out.println("ok");
}
if(<warning descr="Unnecessary 'null' check before 'check1' call">obj1 != null</warning> && obj2 != null && check1(obj1, obj2)) {
if(<warning descr="Unnecessary 'null' check before 'check1()' call">obj1 != null</warning> && obj2 != null && check1(obj1, obj2)) {
System.out.println("ok");
}
if(obj1 != null && <warning descr="Unnecessary 'null' check before 'check2' call">obj2 != null</warning> && check2(obj1, obj2)) {
if(obj1 != null && <warning descr="Unnecessary 'null' check before 'check2()' call">obj2 != null</warning> && check2(obj1, obj2)) {
System.out.println("ok");
}
if(obj != null && check1(obj, obj.toString())) {