findbugs: make inner class static
findbugs: remove dead code
findbugs: fix toString() on array
findbugs: replace StringBuffer by StringBuilder
Merge pull request #795 from FranciscoBorges/master

Fix a number of findbugs warnings