Skip to content

[core] Remove more unused code (FileFinder.java, FileExtensionFilter.java, PredicateUtil.getFileExtensionFilter()) - #7232

Merged
zbynek merged 2 commits into
pmd:mainfrom
UncleOwen:remove-unused-code
Oct 25, 2026
Merged

zbynek merged 2 commits into
pmd:mainfrom
UncleOwen:remove-unused-code

Conversation

@UncleOwen

Copy link
Copy Markdown
Member

Describe the PR

Another small cleanup.

This PR removes...

  • FileFinder.java. Last usage was removed in 563ad76.
  • PredicateUtil.getFileExtensionFilter(). Last usage was removed in fb9f496.
  • FileExtensionFilter.java. Last usage was in PredicateUtil.getFileExtensionFilter().

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)

The last/only usage was removed in
563ad76
(7.3.0)

See pmd#5076
…ter()

The last/only usage of PredicateUtil.getFileExtensionFilter() was
removed in fb9f496
(7.0.0-rc4)

See pmd#4397

The last/only usage of FileExtensionFilter.java was in
PredicateUtil.getFileExtensionFilter().
@pmd-actions-helper

Copy link
Copy Markdown
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.
There are 0 changed duplications, 0 new duplications and 0 removed duplications.
There are 0 changed CPD errors, 0 new CPD errors and 0 removed CPD errors.

Regression Tester Report

(comment created at 2026-10-24 09:58:54+00:00 for e217c76)

@zbynek
zbynek merged commit da25e4a into pmd:main Oct 25, 2026
13 checks passed
@UncleOwen
UncleOwen deleted the remove-unused-code branch October 25, 2026 20:12
@adangel adangel added this to the 7.29.0 milestone Oct 26, 2026
@adangel adangel added the in:pmd-internals Affects PMD's internals label Oct 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

in:pmd-internals Affects PMD's internals

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants