Address FindBugs issues and disable some detectors

This commit fixes enough FindBugs issues and disables enough detectors for `mvn findbugs:check` to pass.
`bits` is actually an Integer, so wouldn't valueOf (which returns an Integer rather than an int) make more sense?