https://pmd.github.io/pmd-5.6.1/pmd-java/rules/java/design.html#AccessorMethodGeneration tells me:
This situation can be avoided by changing the visibility of the field / method from private to package-private.
but when I do, I trigger https://pmd.github.io/pmd-5.6.1/pmd-java/rules/java/controversial.html#DefaultPackage. What can I do to keep them both happy?
-DB
Log in to post a comment.
https://pmd.github.io/pmd-5.6.1/pmd-java/rules/java/design.html#AccessorMethodGeneration tells me:
but when I do, I trigger https://pmd.github.io/pmd-5.6.1/pmd-java/rules/java/controversial.html#DefaultPackage. What can I do to keep them both happy?
-DB