-
Bug
-
Resolution: Done
-
Medium
-
Beijing Release
Fix the issues shown in this link
https://sonar.onap.org/issues?myIssues=true&projectUuids=AV8WGSfM-08if2a6pIBQ&resolved=false
Use try-with-resources for handling the resources/streams to properly close them
https://www.securecoding.cert.org/confluence/x/MACfBg
Example:
try (BufferedReader br =
new BufferedReader(new FileReader(fileName)))
catch (...) {}
Optimize try blocks