Fixes FindBugs warnings