Uploaded image for project: 'Maven Javadoc Plugin'
  1. Maven Javadoc Plugin
  2. MJAVADOC-420

javadoc:fix duplicates lines

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.10.1
    • Fix Version/s: 3.1.0
    • Component/s: fix
    • Labels:
      None
    • Environment:
      MacOS

      Description

      On the following example, if you starts several times the javadoc:fix goal, the line "@param paramSecond" is duplicated several times.

      package com.example;
      
      /**
       * <p>FirstBug class.</p>
       */
      public class FirstBug {
      
      	/**
      	 * <p>mymethod.</p>
      	 *
      	 * @param param a {@link java.lang.String} object.
      	 * @param paramSecond a {@link java.lang.String} object.
      	 */
      	public void mymethod( String param, String paramSecond ) {
      		
      	}
      }
      

      After investigation, i have found that when a parameter name is included in another parameter name, the bug occurs.

      Best regards
      Laurent

        Attachments

        1. fixjavadocbugs.zip
          4 kB
          Michenaud Laurent

          Activity

            People

            • Assignee:
              rfscholte Robert Scholte
              Reporter:
              michenux Michenaud Laurent
            • Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: