Fix warnings from FindBugs.