Skip to content
This repository has been archived by the owner on Oct 27, 2023. It is now read-only.

[MNG-6829] Replace StringUtils#isEmpty(String) & #isNotEmpty(String) #3

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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 + "]." );

Expand Down Expand Up @@ -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 <licenses>/<license>/<url> tag for the license \'"
+ license.getName() + "\'." );
Expand Down