@@ -448,28 +448,31 @@ protected Set<File> getSourceDirectories() {
448
448
return directories ;
449
449
}
450
450
451
- @ SuppressWarnings ( "unchecked" )
451
+
452
452
private List <String > getTestCompileSourceRoots () {
453
+ @ SuppressWarnings ("unchecked" )
454
+ final List <String > testCompileSourceRoots = project .getTestCompileSourceRoots ();
453
455
if (additionalTestSourceRoots == null ) {
454
- return project . getTestCompileSourceRoots () ;
456
+ return testCompileSourceRoots ;
455
457
}
456
458
if (getLog ().isDebugEnabled ()) {
457
459
getLog ().debug ("Adding additional test source roots: " + Joiner .on (", " ).skipNulls ().join (additionalTestSourceRoots ));
458
460
}
459
- List <String > sourceRoots = new ArrayList <String >(project . getTestCompileSourceRoots () );
461
+ List <String > sourceRoots = new ArrayList <String >(testCompileSourceRoots );
460
462
sourceRoots .addAll (additionalTestSourceRoots );
461
463
return sourceRoots ;
462
464
}
463
465
464
- @ SuppressWarnings ("unchecked" )
465
466
private List <String > getCompileSourceRoots () {
467
+ @ SuppressWarnings ("unchecked" )
468
+ final List <String > compileSourceRoots = project .getCompileSourceRoots ();
466
469
if (additionalSourceRoots == null ) {
467
- return project . getCompileSourceRoots () ;
470
+ return compileSourceRoots ;
468
471
}
469
472
if (getLog ().isDebugEnabled ()) {
470
473
getLog ().debug ("Adding additional source roots: " + Joiner .on (", " ).skipNulls ().join (additionalSourceRoots ));
471
474
}
472
- List <String > sourceRoots = new ArrayList <String >(project . getCompileSourceRoots () );
475
+ List <String > sourceRoots = new ArrayList <String >(compileSourceRoots );
473
476
sourceRoots .addAll (additionalSourceRoots );
474
477
return sourceRoots ;
475
478
}
0 commit comments