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

Unreleased Resource: Streams #426

Closed
QiAnXinCodeSafe opened this issue Dec 9, 2019 · 1 comment
Closed

Unreleased Resource: Streams #426

QiAnXinCodeSafe opened this issue Dec 9, 2019 · 1 comment

Comments

@QiAnXinCodeSafe
Copy link

fis = closer.register(new FileInputStream(loggingPropertiesFile));

The program can potentially fail to release a system resource.

@nick-someone
Copy link
Member

Guava's Closer, when properly used as it is done here, closes the resource in question.

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

2 participants