Skip to content

Conversation

@adangel
Copy link
Member

@adangel adangel commented Nov 13, 2025

Describe the PR

SourceManager itself is package-private, so the effective visibility of those methods won't be public anyway.

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)
  • Added (in-code) documentation (if needed)

SourceManager itself is package-private, so the effective visibility of
those methods won't be public anyway.

Fixes pmd#5701
@adangel adangel added this to the 7.19.0 milestone Nov 13, 2025
@pmd-actions-helper
Copy link
Contributor

Documentation Preview

Compared to main:
This changeset changes 0 violations,
introduces 0 new violations, 0 new errors and 0 new configuration errors,
removes 0 violations, 0 errors and 0 configuration errors.

Regression Tester Report

(comment created at 2025-11-13 16:13:53+00:00 for 7764d1d)

@adangel
Copy link
Member Author

adangel commented Nov 13, 2025

Note: This only fixes the instances in SourceManager. Running #6231 against PMD's codebase reveals a lot more instances (~ 100 in pmd-core).

### 🚀️ New and noteworthy

### 🐛️ Fixed Issues
* general
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this seems purely internal. As a user, I wouldn't need to see this in the release notes

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, maybe we can move it down under "internal/maintenance", it's not important for users. But I'd like to have the release notes complete and match what we track with the milestone.

@adangel adangel self-assigned this Nov 27, 2025
@adangel
Copy link
Member Author

adangel commented Nov 27, 2025

I'm going to merge this for 7.19.0, assuming this is ok.

@adangel adangel merged commit 7764d1d into pmd:main Nov 27, 2025
12 checks passed
adangel added a commit that referenced this pull request Nov 27, 2025
@adangel adangel deleted the chore/issue-5701-SourceManager-public-methods branch November 27, 2025 14:04
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.

[core] net.sourceforge.pmd.cpd.SourceManager has public methods

2 participants