Uploaded image for project: 'Commons Exec'
  1. Commons Exec
  2. EXEC-35

inefficiencies identified by findbugs

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 1.0
    • 1.0
    • None
    • linux

    Description

      I've run findbugs, it shows the following issues:

      DefaultExecutor (line 203)
      setExitValues(int[]) may expose internal representation by storing an
      externally mutable object into DefaultExecutor.exitValues

      DefaultProcessingEnvironment (lines 169 and 171)
      Hard coded reference to an absolute pathname

      DefaultProcessingEnvironment (line 108) and
      OpenVmsProcessingEnvironment (line 89)
      concatenates strings using + in a loop

      OpenVmsProcessingEnvironment (line 114) and
      MapUtils (line 72)
      inefficient use of keySet iterator instead of entrySet iterator

      The first issue should probably be fixed by cloning the array, but does
      not appear to be an important problem. The second issue is a false
      positive (if findbugs were activated by default in the pom, this could
      be prevented by a configured exclusion file). The remaining issues are
      harmless.

      I will provide a patch to fix these issues shortly

      Attachments

        1. findbugs-configuration.patch
          3 kB
          Luc Maisonobe
        2. findbugs-fixes.patch
          6 kB
          Luc Maisonobe

        Activity

          People

            sgoeschl Siegfried Goeschl
            luc Luc Maisonobe
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: