Fix bugs found with "findbugs" eclipse plugin