Uploaded image for project: 'Maven Plugin Tools'
  1. Maven Plugin Tools
  2. MPLUGIN-255

Generated HelpMojo doesn't close resource stream

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.2
    • Fix Version/s: 3.3
    • Component/s: None
    • Labels:
      None

      Description

      The HelpMojo class generated from the src/main/resources/help-class-source.vm template doesn't close the input stream that it opens to load the plugin-help.xml resource. This doesn't cause a real problem, but some code auditing tools (findbugs, for example) complain about it. I think that the issue can be fixed with the attached patch.

        Attachments

        1. close-plugin-help-stream.patch
          1 kB
          Juan Hernandez

          Activity

            People

            • Assignee:
              hboutemy Herve Boutemy
              Reporter:
              jhernand Juan Hernandez
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: