Skip to content

Commit

Permalink
[MJAVADOC-802] Set default value of defaultAuthor parameter in fix go…
Browse files Browse the repository at this point in the history
…als to ${user.name}

This closes #297
  • Loading branch information
michael-o committed Jul 13, 2024
1 parent a6cff02 commit 4904e08
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -231,10 +231,8 @@ public abstract class AbstractFixJavadocMojo extends AbstractMojo {

/**
* Default value for the Javadoc tag <code>&#64;author</code>.
* <br/>
* If not specified, the <code>user.name</code> defined in the System properties will be used.
*/
@Parameter(property = "defaultAuthor")
@Parameter(property = "defaultAuthor", defaultValue = "${user.name}")
private String defaultAuthor;

/**
Expand Down Expand Up @@ -494,11 +492,6 @@ protected static String getJavaMethodAsString(JavaExecutable javaExecutable) {
* Init goal parameters.
*/
private void init() {
// defaultAuthor
if (defaultAuthor == null || defaultAuthor.isEmpty()) {
defaultAuthor = System.getProperty("user.name");
}

// defaultSince
int i = defaultSince.indexOf("-" + Artifact.SNAPSHOT_VERSION);
if (i != -1) {
Expand Down

0 comments on commit 4904e08

Please sign in to comment.