mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IG: fix test data
This commit is contained in:
+3
-3
@@ -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())) {
|
||||
|
||||
Reference in New Issue
Block a user