void () { boolean foo = true; // test that this collapses to if(foo) if(foo == true) { } // test that this collapses to if(!foo) if(foo == false) { } // test that this collapses to if(!foo) if(foo != true) { } // test that this collapses to if(foo) if(foo != false) { } // test that this collapses to if(foo) if(true == foo) { } // test that this collapses to if(!foo) if(false == foo) { } // test that this collapses to if(!foo) if(true != foo) { } // test that this collapses to if(foo) if(false != foo) { } // test that this collapses to if(foo) if(true == 3 > 4) { } // test that this collapses to if(foo) if(true != 3 > 4) { } }