Findbugs logical error