Skip to content

Conversation

@vlsi
Copy link

@vlsi vlsi commented Nov 6, 2025

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

@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
Copy link
Author

vlsi commented Nov 6, 2025

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

@vlsi
Copy link
Author

vlsi commented Nov 10, 2025

@simonsteiner1984 , any thoughts?

@vlsi
Copy link
Author

vlsi commented Nov 12, 2025

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
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