File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed
src/main/java/org/apache/maven/plugins/javadoc Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -231,10 +231,8 @@ public abstract class AbstractFixJavadocMojo extends AbstractMojo {
231231
232232 /**
233233 * Default value for the Javadoc tag <code>@author</code>.
234- * <br/>
235- * If not specified, the <code>user.name</code> defined in the System properties will be used.
236234 */
237- @ Parameter (property = "defaultAuthor" )
235+ @ Parameter (property = "defaultAuthor" , defaultValue = "${user.name}" )
238236 private String defaultAuthor ;
239237
240238 /**
@@ -494,11 +492,6 @@ protected static String getJavaMethodAsString(JavaExecutable javaExecutable) {
494492 * Init goal parameters.
495493 */
496494 private void init () {
497- // defaultAuthor
498- if (defaultAuthor == null || defaultAuthor .isEmpty ()) {
499- defaultAuthor = System .getProperty ("user.name" );
500- }
501-
502495 // defaultSince
503496 int i = defaultSince .indexOf ("-" + Artifact .SNAPSHOT_VERSION );
504497 if (i != -1 ) {
You can’t perform that action at this time.
0 commit comments