diff --git a/src/main/java/org/apache/maven/plugin/docck/AbstractCheckDocumentationMojo.java b/src/main/java/org/apache/maven/plugin/docck/AbstractCheckDocumentationMojo.java index f826ed6..02324f4 100644 --- a/src/main/java/org/apache/maven/plugin/docck/AbstractCheckDocumentationMojo.java +++ b/src/main/java/org/apache/maven/plugin/docck/AbstractCheckDocumentationMojo.java @@ -218,13 +218,13 @@ private void setupProxy( HttpClientBuilder httpClientBuilder ) int proxyPort = settingsProxy.getPort(); - if ( StringUtils.isNotEmpty( proxyHost ) ) + if ( proxyHost != null && !proxyHost.isEmpty() ) { httpClientBuilder.setProxy( new HttpHost( proxyHost, proxyPort ) ); getLog().info( "Using proxy [" + proxyHost + "] at port [" + proxyPort + "]." ); - if ( StringUtils.isNotEmpty( proxyUsername ) ) + if ( proxyUsername != null && !proxyUsername.isEmpty() ) { getLog().info( "Using proxy user [" + proxyUsername + "]." ); @@ -434,7 +434,7 @@ private void checkProjectLicenses( MavenProject project, DocumentationReporter r else { String url = license.getUrl(); - if ( StringUtils.isEmpty( url ) ) + if ( url == null || url.isEmpty() ) { reporter.error( "pom.xml is missing the // tag for the license \'" + license.getName() + "\'." );