4 ms·
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
by kevinherron 8y ago
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.