Skip to content

Commit

Permalink
[MNG-6829] Replace StringUtils#isEmpty(String) and #isNotEmpty(String) (
Browse files Browse the repository at this point in the history
  • Loading branch information
timtebeek and TeamModerne authored May 23, 2023
1 parent 047e8c8 commit f40882e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ private String getBottomText()
*/
private void copyRequiredResources( String dir )
{
if ( StringUtils.isNotEmpty( stylesheet ) )
if ( stylesheet != null && !stylesheet.isEmpty() )
{
File stylesheetFile = new File( stylesheet );
File destStylesheetFile = new File( dir, "stylesheet.css" );
Expand Down Expand Up @@ -493,7 +493,7 @@ protected void executeReport( Locale locale )
private String getTemplateDir()
{
// Check if overridden
if ( StringUtils.isEmpty( templateDir ) )
if ( templateDir == null || templateDir.isEmpty() )
{
if ( javadocTemplatesVersion.isAtLeast( "1.8" ) )
{
Expand Down Expand Up @@ -524,7 +524,7 @@ private void setJavadocTemplatesVersion()
{
JavaVersion javaVersion = JavaVersion.JAVA_SPECIFICATION_VERSION;

if ( StringUtils.isNotEmpty( javadocVersion ) )
if ( javadocVersion != null && !javadocVersion.isEmpty() )
{
javadocTemplatesVersion = JavaVersion.parse( javadocVersion );
}
Expand Down Expand Up @@ -592,7 +592,7 @@ private Path getJavadocLocation()
// Special case: using the site:stage goal
String stagingDirectory = System.getProperty( "stagingDirectory" );

if ( StringUtils.isNotEmpty( stagingDirectory ) )
if ( stagingDirectory != null && !stagingDirectory.isEmpty() )
{
String javadocDestDir = getJavadocDir().getName();
boolean javadocAggregate = JxrReportUtil.isJavadocAggregated( project );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ protected static String getMavenJavadocPluginBasicOption( MavenProject project,
}

String attribute = pluginConf.getAttribute( optionName );
if ( StringUtils.isNotEmpty( attribute ) )
if ( attribute != null && !attribute.isEmpty() )
{
return attribute;
}
Expand Down

0 comments on commit f40882e

Please sign in to comment.