@@ -332,7 +332,7 @@ private String getBottomText()
332
332
*/
333
333
private void copyRequiredResources ( String dir )
334
334
{
335
- if ( StringUtils . isNotEmpty ( stylesheet ) )
335
+ if ( stylesheet != null && ! stylesheet . isEmpty ( ) )
336
336
{
337
337
File stylesheetFile = new File ( stylesheet );
338
338
File destStylesheetFile = new File ( dir , "stylesheet.css" );
@@ -493,7 +493,7 @@ protected void executeReport( Locale locale )
493
493
private String getTemplateDir ()
494
494
{
495
495
// Check if overridden
496
- if ( StringUtils .isEmpty ( templateDir ) )
496
+ if ( templateDir == null || templateDir .isEmpty () )
497
497
{
498
498
if ( javadocTemplatesVersion .isAtLeast ( "1.8" ) )
499
499
{
@@ -524,7 +524,7 @@ private void setJavadocTemplatesVersion()
524
524
{
525
525
JavaVersion javaVersion = JavaVersion .JAVA_SPECIFICATION_VERSION ;
526
526
527
- if ( StringUtils . isNotEmpty ( javadocVersion ) )
527
+ if ( javadocVersion != null && ! javadocVersion . isEmpty ( ) )
528
528
{
529
529
javadocTemplatesVersion = JavaVersion .parse ( javadocVersion );
530
530
}
@@ -592,7 +592,7 @@ private Path getJavadocLocation()
592
592
// Special case: using the site:stage goal
593
593
String stagingDirectory = System .getProperty ( "stagingDirectory" );
594
594
595
- if ( StringUtils . isNotEmpty ( stagingDirectory ) )
595
+ if ( stagingDirectory != null && ! stagingDirectory . isEmpty ( ) )
596
596
{
597
597
String javadocDestDir = getJavadocDir ().getName ();
598
598
boolean javadocAggregate = JxrReportUtil .isJavadocAggregated ( project );
0 commit comments