Skip to content

Deprecate LineBreaker and take commons-io off the compile classpath - #1096

Merged
slachiewicz merged 2 commits into
masterfrom
doxia-1093-linebreaker-commons-io
Sep 3, 2026
Merged

slachiewicz merged 2 commits into
masterfrom
doxia-1093-linebreaker-commons-io

Conversation

@slachiewicz

Copy link
Copy Markdown
Member

Closes #1093. Two independent commits: LineBreaker is deprecated for removal in 2.3.0 rather than deleted, since it is public API of a released module; the seven IOUtils call sites become copy loops, which moves commons-io to test scope in doxia-core, fml, markdown and xdoc and off apt and xhtml5 entirely.

Verified: mvn install → BUILD SUCCESS, all module test suites green, japicmp clean on doxia-sink-api and doxia-core.

This change was created with AI assistance.

Nothing in Doxia or the Maven repositories calls it, and its write loop swallows
every exception, so a failing writer would truncate output silently. Deprecated
rather than deleted because the class is public API of a released module.
The seven IOUtils call sites become plain copy loops; the Java 8 baseline rules
out Reader.transferTo and InputStream.readAllBytes. commons-io drops to test
scope in four modules and off the compile classpath of all six.
@slachiewicz slachiewicz added deprecated Pull requests that deprecate features maintenance java Pull requests that update Java code labels Sep 3, 2026
@slachiewicz
slachiewicz marked this pull request as ready for review September 3, 2026 22:40
@slachiewicz
slachiewicz merged commit 33ac125 into master Sep 3, 2026
16 checks passed
@slachiewicz
slachiewicz deleted the doxia-1093-linebreaker-commons-io branch September 3, 2026 22:54
@github-actions github-actions Bot added this to the 2.2.0 milestone Sep 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

deprecated Pull requests that deprecate features java Pull requests that update Java code maintenance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Drop the dead LineBreaker class and the commons-io dependency

1 participant