Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use try-with-resources for RepositoryConnection uses #70

Closed
abrokenjester opened this issue May 11, 2016 · 0 comments
Closed

Use try-with-resources for RepositoryConnection uses #70

abrokenjester opened this issue May 11, 2016 · 0 comments

Comments

@abrokenjester
Copy link
Contributor

(Migrated from https://openrdf.atlassian.net/browse/SES-2194 )

Since RepositoryConnection now extends AutoCloseable, it is a valid candidate for use in try-with-resources.

We should simplify our internal code based on this to reduce the number of finally blocks that we need to maintain.

abrokenjester pushed a commit that referenced this issue Jul 25, 2020
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

No branches or pull requests

1 participant