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-ffa450edef68
master
Vincent Siveton 2008-03-08 13:32:35 +00:00
parent 4984c0249b
commit 3f6b34ac8f
1 changed files with 1 additions and 1 deletions

View File

@ -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() ) );
}