From 64ec552c1721ed4de7e044ea807b0f32cfaafbb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotrek=20=C5=BBygie=C5=82o?= Date: Sat, 20 Nov 2021 22:37:28 +0100 Subject: [PATCH] [MPLUGIN-379] Report goal does not include threadSafe attribute in generated documentation This closes #50 --- .../plugin/generator/PluginXdocGenerator.java | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/maven-plugin-tools-generators/src/main/java/org/apache/maven/tools/plugin/generator/PluginXdocGenerator.java b/maven-plugin-tools-generators/src/main/java/org/apache/maven/tools/plugin/generator/PluginXdocGenerator.java index 1562b988a..ac064f489 100644 --- a/maven-plugin-tools-generators/src/main/java/org/apache/maven/tools/plugin/generator/PluginXdocGenerator.java +++ b/maven-plugin-tools-generators/src/main/java/org/apache/maven/tools/plugin/generator/PluginXdocGenerator.java @@ -312,15 +312,14 @@ private void writeGoalAttributes( MojoDescriptor mojoDescriptor, XMLWriter w ) w.writeMarkup( format( "pluginxdoc.mojodescriptor.dependencyCollectionRequired", value ) ); w.endElement(); //li } + } - if ( extendedMojoDescriptor.isThreadSafe() ) - { - addedUl = addUl( w, addedUl ); - w.startElement( "li" ); - w.writeMarkup( getString( "pluginxdoc.mojodescriptor.threadSafe" ) ); - w.endElement(); //li - } - + if ( mojoDescriptor.isThreadSafe() ) + { + addedUl = addUl( w, addedUl ); + w.startElement( "li" ); + w.writeMarkup( getString( "pluginxdoc.mojodescriptor.threadSafe" ) ); + w.endElement(); //li } value = mojoDescriptor.getSince();