This is an automated email from the ASF dual-hosted git repository.

michaelo pushed a commit to branch MPLUGIN-517
in repository https://gitbox.apache.org/repos/asf/maven-plugin-tools.git

commit 0b0940e59de3ad8e62f39fe88c31bd6c337b1279
Author: Michael Osipov <micha...@apache.org>
AuthorDate: Fri Apr 12 09:05:38 2024 +0200

    [MPLUGIN-517] GoalRenderer renderParameterDetails() renders in wrong order
---
 .../main/java/org/apache/maven/plugin/plugin/report/GoalRenderer.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/maven-plugin-report-plugin/src/main/java/org/apache/maven/plugin/plugin/report/GoalRenderer.java
 
b/maven-plugin-report-plugin/src/main/java/org/apache/maven/plugin/plugin/report/GoalRenderer.java
index 62d38c15..71a62f10 100644
--- 
a/maven-plugin-report-plugin/src/main/java/org/apache/maven/plugin/plugin/report/GoalRenderer.java
+++ 
b/maven-plugin-report-plugin/src/main/java/org/apache/maven/plugin/plugin/report/GoalRenderer.java
@@ -296,11 +296,11 @@ public class GoalRenderer extends 
AbstractPluginReportRenderer {
         while (parameters.hasNext()) {
             Parameter parameter = parameters.next();
             // deprecated anchor for backwards-compatibility with XDoc (upper 
and lower case)
-            // TODO: remove once migrated to Doxia 2.x
+            // TODO: replace once migrated to Doxia 2.x with two-arg 
startSection(String, String) method
             sink.anchor(parameter.getName());
+            sink.anchor_();
 
             startSection(format("parameter.name", parameter.getName()));
-            sink.anchor_();
             String context = "Parameter " + parameter.getName() + " in goal " 
+ descriptor.getGoal();
             renderDeprecatedParameterDescription(parameter.getDeprecated(), 
context);
             sink.division();

Reply via email to