Repository navigation
[MJAVADOC-799] Remove inconsistent AbstractFixJavadocMojo#defaultVersion default value - #295
Conversation
|
Since the value cannot be reasonably set to empty I would drop the default value, it has no use at all. |
AbstractFixJavadocMojo#defaultVersion default valuesAbstractFixJavadocMojo#defaultVersion default value
…sion` default value The current default value has no use anymore. This closes #295
|
Thanks for the adjustments! It seems currently no test covers a custom |
That'd be great. Currently, we cover that there is no default value for |
|
Have created #305 for adding a test. |
|
Resolve #1178 |
As mentioned in MJAVADOC-799 there is currently a mismatch for the
AbstractFixJavadocMojo#defaultVersionparameter default value:$Id:$$Id: $@Parameter#defaultValue:$Id: $IdIt seems
@Parameter#defaultValueoverwrites the initial field value. This can be seen when runningmvn org.apache.maven.plugins:maven-javadoc-plugin:3.7.0:fixon a dummy project; it will add@version $Id: $Idto the Javadoc.As mentioned in the Jira issue I am not sure if
$Id: $Idis really a good / the intended default value, but it is the value currently used by the Mojo, therefore I have kept it. And I have adjusted the expected unit test results because they don't seem to create the Mojo instance the way Maven normally does, and are therefore using the initial field value (which was previously incorrect) instead of@Parameter#defaultValue.I have also included some small changes for URLs and
defaultValuefor other parameters. Please let me know if I should omit that because it is not directly related to this.Following this checklist to help us incorporate your
contribution quickly and easily:
for the change (usually before you start working on it). Trivial changes like typos do not
require a JIRA issue. Your pull request should address just this issue, without
pulling in other changes.
[MJAVADOC-XXX] - Fixes bug in ApproximateQuantiles,where you replace
MJAVADOC-XXXwith the appropriate JIRA issue. Best practiceis to use the JIRA issue title in the pull request title and in the first line of the
commit message.
mvn clean verify -Prun-itsto make sure basic checks pass. A more thorough check willbe performed on your pull request automatically.
If your pull request is about ~20 lines of code you don't need to sign an
Individual Contributor License Agreement if you are unsure
please ask on the developers list.
To make clear that you license your contribution under
the Apache License Version 2.0, January 2004
you have to acknowledge this by using the following check-box.
I hereby declare this contribution to be licensed under the Apache License Version 2.0, January 2004
In any other case, please file an Apache Individual Contributor License Agreement.