Skip to content

XGC-148: drop commons-io dependency#32

Open
vlsi wants to merge 6 commits into
apache:mainfrom
vlsi:commonsio
Open

XGC-148: drop commons-io dependency#32
vlsi wants to merge 6 commits into
apache:mainfrom
vlsi:commonsio

Conversation

@vlsi

@vlsi vlsi commented Nov 6, 2025

Copy link
Copy Markdown

Fixes https://issues.apache.org/jira/browse/XGC-148

TODO:

  • IOUtils.closeQuitely — replaced with try-with-resources
  • IOUtils.toString(Reader) — implemented a function in test (it was used in a single test only)
  • IOUtils.copy. Java 9 has InputStream.transferTo(OutputStream)
  • IOUtils.toByteArray. Java 9 has InputStream.readAllBytes()
  • commons.io.output.ByteArrayOutputStream. I see that there were no consistent use of commons.ByteArrayOutputStream, so I replaced all the usages with java.io.ByteArrayOutputStream
  • EndianUtils.readSwappedInteger

Comment thread src/test/java/org/apache/xmlgraphics/util/uri/DataURIResolverTestCase.java Outdated
@vlsi vlsi force-pushed the commonsio branch 3 times, most recently from 2f13415 to 1d7064b Compare November 6, 2025 10:32
@vlsi vlsi changed the title XGC-148: use try-with-resources instead of IOUtils.closeQuietly XGC-148: drop commons-io dependency Nov 6, 2025
@vlsi vlsi marked this pull request as ready for review November 6, 2025 11:50
@vlsi

vlsi commented Nov 6, 2025

Copy link
Copy Markdown
Author

I see the CI checks fail, and I suggest a fix for it: #33

@vlsi

vlsi commented Nov 10, 2025

Copy link
Copy Markdown
Author

@simonsteiner1984 , any thoughts?

@vlsi

vlsi commented Nov 12, 2025

Copy link
Copy Markdown
Author

Is there a reason of not merging the PR?

Frankly, it looks sad to miss myself here: https://github.com/apache/xmlgraphics-commons/graphs/contributors

@simonsteiner1984

Copy link
Copy Markdown
Contributor

22e04a9

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.

2 participants