Skip to content

XMLTools: use try-with-resources statement#111

Merged
melissalinkert merged 1 commit intoome:masterfrom
sbesson:xmltools_try_with_resources
Feb 5, 2026
Merged

XMLTools: use try-with-resources statement#111
melissalinkert merged 1 commit intoome:masterfrom
sbesson:xmltools_try_with_resources

Conversation

@sbesson
Copy link
Member

@sbesson sbesson commented Feb 4, 2026

While reviewing the APIs consumed in ome/bioformats#4408, I realised these implementations still use old try/finally block. This updates these to use try-with-resources statements introduced since Java 8.

Functionally there should be no change to the usage or tests

Copy link
Member

@melissalinkert melissalinkert left a comment

Choose a reason for hiding this comment

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

Makes sense, just waiting on a passing nightly build to be safe.

@melissalinkert melissalinkert merged commit ee2ceae into ome:master Feb 5, 2026
16 checks passed
@sbesson sbesson deleted the xmltools_try_with_resources branch February 5, 2026 15:27
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