void (byte myByte) { if (<warning descr="Condition 'myByte == 0xFF' is always 'false'">myByte == 0xFF</warning>) { System.out.println("wrong"); } if (<warning descr="Condition 'myByte != 0xFFF' is always 'true'">myByte != 0xFFF</warning>) { System.out.println("wrong"); } if (myByte == (byte) 0xFF) { System.out.println("right"); } }