サンプル

public class ClassA {
int x;
public void methodA() {
if(x==x){
// ...
}
}

}
ソリューション 「x==x」を除去して、コードのロジックを見直します。