Uploaded image for project: 'Virtual Function Controller'
  1. Virtual Function Controller
  2. VFC-967

Sonar flagged Major issues in vnfm-svnfm project

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • Casablanca Release
    • 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)))

      { // no need to name intermediate resources if you don't want to return br.readLine(); }

      catch (...) {}

       

      Optimize try blocks

            krisjinka krisjinka
            krisjinka krisjinka
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: