fix FindBugs warnings. Format code in netbeans