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

Generated HelpMojo doesn't close resource stream

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.2
    • 3.3
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: