News for hackers. Stuff that matters.
Re:Ask HN: Tooling for Improving Java Codebase by kevinherron on Wednesday March 27, 2019 @08:13AM (#19500073)
Checkstyle is a must for any project with more than 1 developer (or even with 1).

Findbugs/spotbugs maven/gradle plugins are nice, but require a little bit of tuning to eliminate false positives. Nothing near the amount of tuning or upkeep a Sonar instance requires though.

Use @Nullable, @Nonnull, @ParametersAreNonNullByDefault annotations. I prefer "non-null by default" via a package-level annotation from @ParametersAreNonNullByDefault and using @Nullable where appropriate.

Use the Error Prone compiler/build plugin.

There are no comments on this comment yet.