Beispiel

public class ClassA {
int a; public void methodA() {

boolean b = (a & 0)==0; // ...
}

}
Lösung Überdenken Sie die Logik.