Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Auto Closed
-
3.2
-
None
-
None
Description
maven-plugin-tools-javadc currently complains if the @parameter is used on a setter method rather than a field with this warning:
warning - Tag @parameter cannot be used in method documentation. It can only be used in the following types of documentation: field.
Likewise, the @Parameter Java annotation can't be placed on setter methods, since it is limited to @Target(
{ ElementType.FIELD }).
However, @parameter/@Parameter should be legal to use on both fields and setter methods, as referenced here:
"Marks a private field (or a setter method) as a parameter."
maven-plugin-tools-javadoc and maven-plugin-annotations should be updated to allow the usage of @parameter/@Parameter on setter methods.