Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Comments

XGC-148: drop commons-io dependency#32

Open
vlsi wants to merge 6 commits intoapache:main from
vlsi:commonsio
Open

XGC-148: drop commons-io dependency #32
vlsi wants to merge 6 commits intoapache:main from
vlsi:commonsio

Conversation

@vlsi
Copy link

@vlsi vlsi commented Nov 6, 2025
edited
Loading

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

vlsi commented Nov 6, 2025

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

Copy link
Author

vlsi commented Nov 10, 2025

@simonsteiner1984 , any thoughts?

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

Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@simonsteiner1984 simonsteiner1984 simonsteiner1984 left review comments

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /