Hi all!
When you write no constructor, but use one or more of
Lombok's constructor annotations, the compiler will not add an implicit one. However, S1118 ("Utility classes should not have public constructors") raises an issue about this. We use SonarJava on SonarCloud.
We would like to keep the rule active yet avoid having to deal with all these false positives manually.
Note that for another Lombok annotation,
@UtilityClass, which generates a private no-arg constructor, S1118 does not trigger a false positive.
Best regards,
Jens Bannmann