MPLUGIN-86: Test for empty mojo description in XDoc generator does not cover empty string
Submitted by: Benjamin Bentmann Reviewed by: Vincent Siveton o applied git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@634957 13f79535-47bb-0310-9956-ffa450edef68master
parent
4984c0249b
commit
3f6b34ac8f
|
|
@ -175,7 +175,7 @@ public class PluginXdocGenerator
|
|||
w.endElement(); //p
|
||||
|
||||
w.startElement( "p" );
|
||||
if ( mojoDescriptor.getDescription() != null )
|
||||
if ( StringUtils.isNotEmpty( mojoDescriptor.getDescription() ) )
|
||||
{
|
||||
w.writeMarkup( makeHtmlValid( mojoDescriptor.getDescription() ) );
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue