We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
As I migrate to the current jpos/jposee, I run sonarqube scanner and it picked this up.
jPOS-EE/modules/dbsupport/src/main/java/org/jpos/ee/DB.java
Lines 266 to 269 in 404d642
If it makes sense, change it to the following so that the file is always closed, or add a finally block to close it.
if (f.exists()) { try (FileReader fr = new FileReader(f)) { props.load(fr); } }
The text was updated successfully, but these errors were encountered:
Use try with resource to close FileReader
7f3a1dd
closes #254
Merge pull request #255 from /issues/254-try-with-resources-in-DB-fil…
6fbb795
…ereader Use try with resource to close FileReader
Successfully merging a pull request may close this issue.
As I migrate to the current jpos/jposee, I run sonarqube scanner and it picked this up.
jPOS-EE/modules/dbsupport/src/main/java/org/jpos/ee/DB.java
Lines 266 to 269 in 404d642
If it makes sense, change it to the following so that the file is always closed, or add a finally block to close it.
The text was updated successfully, but these errors were encountered: