code simplification
git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1337852 13f79535-47bb-0310-9956-ffa450edef68master
parent
d1998943e5
commit
bac8a5305b
|
|
@ -19,6 +19,7 @@ package org.apache.maven.tools.plugin.scanner;
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.apache.maven.plugin.descriptor.InvalidPluginDescriptorException;
|
||||
import org.apache.maven.plugin.descriptor.MojoDescriptor;
|
||||
import org.apache.maven.plugin.descriptor.PluginDescriptor;
|
||||
|
|
@ -157,7 +158,7 @@ public class DefaultMojoScanner
|
|||
|
||||
for ( String extractor : extractors )
|
||||
{
|
||||
if ( extractor != null && extractor.length() > 0 )
|
||||
if ( StringUtils.isNotEmpty( extractor ) )
|
||||
{
|
||||
this.activeExtractors.add( extractor );
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue