Skip to content

[java] #6461: PublicMemberInNonPublicType: Verify that we can suppress on the method - #6802

Merged
adangel merged 1 commit into
pmd:mainfrom
UncleOwen:issue-6461-test-suppression-location
Jun 23, 2026
Merged

adangel merged 1 commit into
pmd:mainfrom
UncleOwen:issue-6461-test-suppression-location

Conversation

@UncleOwen

Copy link
Copy Markdown
Member

Describe the PR

This PR adds a test that verifies that suppressing PublicMemberInNonPublicType on a function (instead of the whole class) works as expected.

Related issues

Ready?

  • Added unit tests for fixed bug/feature
  • Passing all unit tests
  • Complete build ./mvnw clean verify passes (checked automatically by github actions)
  • [n/a] Added (in-code) documentation (if needed)

@pmd-actions-helper

Copy link
Copy Markdown
Contributor

Documentation Preview

No relevant source code has been changed, pmdtester skipped.

(comment created at 2026-06-22 15:56:39+00:00 for 139f60b)

@adangel adangel added this to the 7.26.0 milestone Jun 23, 2026
@adangel
adangel merged commit e9418d7 into pmd:main Jun 23, 2026
12 checks passed
@UncleOwen
UncleOwen deleted the issue-6461-test-suppression-location branch June 23, 2026 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[java] PublicMemberInNonPublicType can only be suppressed on type and not member level

2 participants