1 2 public class UselessControlFlow { 3 4 void harmless1(Object x, Object y) { 5 if (!x.equals(y)) { 6 7 } else { 8 9 } 10 System.out.println(x); 11 System.out.println(y); 12 } 13 void report0(Object x, Object y) { 14 if (!x.equals(y)); System.out.println(x); 15 System.out.println(y); 16 } 17 void report1(Object x, Object y) { 18 if (!x.equals(y)); 19 System.out.println(x); 20 System.out.println(y); 21 } 22 void report2(Object x, Object y) { 23 if (!x.equals(y)); 24 25 System.out.println(x); 26 System.out.println(y); 27 } 28 void report3(Object x, Object y) { 29 if (!x.equals(y)); 30 31 32 System.out.println(x); 33 System.out.println(y); 34 } 35 void report4(Object [] x, Object y) { 36 for(Object o : x) { 37 if (o.equals(y)) { 38 } 39 } 40 } 41 }