Branch: refs/heads/main
  Home:   https://github.com/pmd/pmd
  Commit: 0be235987bee3eb76ee3f9ce5dee2928691bcd0b
      https://github.com/pmd/pmd/commit/0be235987bee3eb76ee3f9ce5dee2928691bcd0b
  Author: legacynode <[email protected]>
  Date:   2026-07-24 (Fri, 24 Jul 2026)

  Changed paths:
    M docs/pages/release_notes.md
    M 
pmd-java/src/main/java/net/sourceforge/pmd/lang/java/rule/documentation/CommentRequiredRule.java
    M 
pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/rule/documentation/xml/CommentRequired.xml

  Log Message:
  -----------
  [java] CommentRequired: add packageMethodCommentRequirement property (#6880)

Add a new property 'packageMethodCommentRequirement' to the CommentRequired
rule that controls whether Javadoc comments are required (or unwanted) for
package-private methods and constructors. Previously only public and protected
methods could be configured via publicMethodCommentRequirement and
protectedMethodCommentRequirement.

The new property defaults to Ignored to keep existing configurations backwards
compatible. It uses ASTExecutableDeclaration.getVisibility() == V_PACKAGE, which
correctly detects package-private visibility and reliably resolves the attached
Javadoc via node.getJavadocComment().



To unsubscribe from these emails, change your notification settings at 
https://github.com/pmd/pmd/settings/notifications


_______________________________________________
Pmd-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pmd-commits

Reply via email to