code simplification

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1337852 13f79535-47bb-0310-9956-ffa450edef68
master
Herve Boutemy 2012-05-13 11:28:59 +00:00
parent d1998943e5
commit bac8a5305b
1 changed files with 2 additions and 1 deletions

View File

@ -19,6 +19,7 @@ package org.apache.maven.tools.plugin.scanner;
* under the License. * under the License.
*/ */
import org.apache.commons.lang.StringUtils;
import org.apache.maven.plugin.descriptor.InvalidPluginDescriptorException; import org.apache.maven.plugin.descriptor.InvalidPluginDescriptorException;
import org.apache.maven.plugin.descriptor.MojoDescriptor; import org.apache.maven.plugin.descriptor.MojoDescriptor;
import org.apache.maven.plugin.descriptor.PluginDescriptor; import org.apache.maven.plugin.descriptor.PluginDescriptor;
@ -157,7 +158,7 @@ public class DefaultMojoScanner
for ( String extractor : extractors ) for ( String extractor : extractors )
{ {
if ( extractor != null && extractor.length() > 0 ) if ( StringUtils.isNotEmpty( extractor ) )
{ {
this.activeExtractors.add( extractor ); this.activeExtractors.add( extractor );
} }