Skip to content

[core] chore: Replace most of IOUtil with commons-io - #7139

Merged
UncleOwen merged 16 commits into
pmd:mainfrom
adangel:chore/use-commons-io
Oct 4, 2026
Merged

UncleOwen merged 16 commits into
pmd:mainfrom
adangel:chore/use-commons-io

Conversation

@adangel

@adangel adangel commented Oct 3, 2026

Copy link
Copy Markdown
Member

Describe the PR

This addresses an old TODO forgotten for PMD 7...

// TODO PMD 7: consider bringing back commons-io and cleaning this class up.

Since PMD 7, we are using Java 8 and can add commons-io again.

Some of the functions in IOUtil weren't used at all, some are now used directly from commons-io.

Note: IOUtil is internal - so if someone uses this, it is expected to break. But solution is simple - use commons-io.

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)

@adangel adangel added this to the 7.29.0 milestone Oct 3, 2026
@adangel adangel added the in:pmd-internals Affects PMD's internals label Oct 3, 2026
@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-03 20:04:52+00:00 for f0935de)

@UncleOwen UncleOwen left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Less low-level code to maintain. 👍

@UncleOwen
UncleOwen merged commit 2b948b4 into pmd:main Oct 4, 2026
13 checks passed
@adangel
adangel deleted the chore/use-commons-io branch October 4, 2026 17:57
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.

2 participants