Uploaded image for project: 'Maven Archetype'
  1. Maven Archetype
  2. ARCHETYPE-360

Wrong assignment in loop results in wrong debug log output

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 2.0
    • 2.1
    • Generator
    • None

    Description

      The "artifactId" parameter in the processFilesetModule() method is reassigned in the while loop iterating over submodules, but the parameter is not used in the loop.

      The only consequence of that is that the artifact ID logged by the getLogger().debug( "Processed " + artifactId ); line at the end of the method does not match the artifact ID logged at the start of the method getLogger().debug( "Processing module " + artifactId ); if there are submodules.

      Proposal: Just delete the line, see attached patch file.

      Attachments

        1. wrong_assignment.patch
          0.8 kB
          Marc Wirth

        Activity

          People

            hboutemy Herve Boutemy
            marcwirth Marc Wirth
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: