Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-2059

New rule to detect calls to method File#deleteOnExit

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.3
    • Component/s: None
    • Labels:
      None

      Description

      Calling this method is not recommended : see http://stackoverflow.com/questions/617414/create-a-temporary-directory-in-java/1506777#1506777

      The rule should also check calls to org.apache.commons.io.FileUtils#forceDeleteOnExit() because it internally uses File#deleteOnExit().

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              godin OLD - Evgeny Mandrikov
              Reporter:
              simon.brandhof Simon Brandhof (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: