@@ -1977,7 +1977,7 @@ protected void executeReport( Locale unusedLocale )
1977
1977
throw new MavenReportException ( "Failed to generate javadoc options file: " + e .getMessage (), e );
1978
1978
}
1979
1979
1980
- List <String > sourcePaths = getSourcePaths ();
1980
+ Collection <String > sourcePaths = getSourcePaths ();
1981
1981
List <String > files = getFiles ( sourcePaths );
1982
1982
if ( !canGenerateReport ( files ) )
1983
1983
{
@@ -2180,11 +2180,11 @@ protected void executeReport( Locale unusedLocale )
2180
2180
/**
2181
2181
* Method to get the files on the specified source paths
2182
2182
*
2183
- * @param sourcePaths a List that contains the paths to the source files
2183
+ * @param sourcePaths a Collection that contains the paths to the source files
2184
2184
* @return a List that contains the specific path for every source file
2185
2185
* @throws MavenReportException {@link MavenReportException}
2186
2186
*/
2187
- protected List <String > getFiles ( List <String > sourcePaths )
2187
+ protected List <String > getFiles ( Collection <String > sourcePaths )
2188
2188
throws MavenReportException
2189
2189
{
2190
2190
List <String > files = new ArrayList <>();
@@ -2207,14 +2207,14 @@ protected List<String> getFiles( List<String> sourcePaths )
2207
2207
* Method to get the source paths. If no source path is specified in the parameter, the compile source roots
2208
2208
* of the project will be used.
2209
2209
*
2210
- * @return a List of the project absolute source paths as <code>String</code>
2210
+ * @return a Collection of the project absolute source paths as <code>String</code>
2211
2211
* @throws MavenReportException {@link MavenReportException}
2212
2212
* @see JavadocUtil#pruneDirs(MavenProject, List)
2213
2213
*/
2214
- protected List <String > getSourcePaths ()
2214
+ protected Collection <String > getSourcePaths ()
2215
2215
throws MavenReportException
2216
2216
{
2217
- List <String > sourcePaths ;
2217
+ Collection <String > sourcePaths ;
2218
2218
2219
2219
if ( StringUtils .isEmpty ( sourcepath ) )
2220
2220
{
@@ -2235,7 +2235,7 @@ protected List<String> getSourcePaths()
2235
2235
File javadocDir = getJavadocDirectory ();
2236
2236
if ( javadocDir .exists () && javadocDir .isDirectory () )
2237
2237
{
2238
- List <String > l = JavadocUtil .pruneDirs ( project , Collections .singletonList (
2238
+ Collection <String > l = JavadocUtil .pruneDirs ( project , Collections .singletonList (
2239
2239
getJavadocDirectory ().getAbsolutePath () ) );
2240
2240
sourcePaths .addAll ( l );
2241
2241
}
@@ -2273,7 +2273,7 @@ protected List<String> getSourcePaths()
2273
2273
File javadocDir = new File ( subProject .getBasedir (), javadocDirRelative );
2274
2274
if ( javadocDir .exists () && javadocDir .isDirectory () )
2275
2275
{
2276
- List <String > l = JavadocUtil .pruneDirs ( subProject , Collections .singletonList (
2276
+ Collection <String > l = JavadocUtil .pruneDirs ( subProject , Collections .singletonList (
2277
2277
javadocDir .getAbsolutePath () ) );
2278
2278
sourcePaths .addAll ( l );
2279
2279
}
@@ -2288,7 +2288,7 @@ protected List<String> getSourcePaths()
2288
2288
sourcePaths = JavadocUtil .pruneDirs ( project , sourcePaths );
2289
2289
if ( getJavadocDirectory () != null )
2290
2290
{
2291
- List <String > l = JavadocUtil .pruneDirs ( project , Collections .singletonList (
2291
+ Collection <String > l = JavadocUtil .pruneDirs ( project , Collections .singletonList (
2292
2292
getJavadocDirectory ().getAbsolutePath () ) );
2293
2293
sourcePaths .addAll ( l );
2294
2294
}
@@ -2436,11 +2436,11 @@ protected boolean canGenerateReport( List<String> files )
2436
2436
* Method to get the excluded source files from the javadoc and create the argument string
2437
2437
* that will be included in the javadoc commandline execution.
2438
2438
*
2439
- * @param sourcePaths the list of paths to the source files
2439
+ * @param sourcePaths the collection of paths to the source files
2440
2440
* @return a String that contains the exclude argument that will be used by javadoc
2441
2441
* @throws MavenReportException
2442
2442
*/
2443
- private String getExcludedPackages ( List <String > sourcePaths )
2443
+ private String getExcludedPackages ( Collection <String > sourcePaths )
2444
2444
throws MavenReportException
2445
2445
{
2446
2446
List <String > excludedNames = null ;
@@ -2471,7 +2471,7 @@ private String getExcludedPackages( List<String> sourcePaths )
2471
2471
* string (colon (<code>:</code>) on Solaris or semi-colon (<code>;</code>) on Windows).
2472
2472
* @see File#pathSeparator
2473
2473
*/
2474
- private String getSourcePath ( List <String > sourcePaths )
2474
+ private String getSourcePath ( Collection <String > sourcePaths )
2475
2475
{
2476
2476
String sourcePath = null ;
2477
2477
@@ -3049,7 +3049,7 @@ private String getTagletPath()
3049
3049
throws MavenReportException
3050
3050
{
3051
3051
Set <TagletArtifact > tArtifacts = collectTagletArtifacts ();
3052
- List <String > pathParts = new ArrayList <>();
3052
+ Collection <String > pathParts = new ArrayList <>();
3053
3053
3054
3054
for ( TagletArtifact tagletArtifact : tArtifacts )
3055
3055
{
@@ -4284,7 +4284,7 @@ private void copyAdditionalJavadocResources( File anOutputDirectory )
4284
4284
* @param files not null
4285
4285
* @return the list of package names for files in the sourcePaths
4286
4286
*/
4287
- private List <String > getPackageNames ( List <String > sourcePaths , List <String > files )
4287
+ private List <String > getPackageNames ( Collection <String > sourcePaths , List <String > files )
4288
4288
{
4289
4289
return getPackageNamesOrFilesWithUnnamedPackages ( sourcePaths , files , true );
4290
4290
}
@@ -4294,7 +4294,7 @@ private List<String> getPackageNames( List<String> sourcePaths, List<String> fil
4294
4294
* @param files not null
4295
4295
* @return a list files with unnamed package names for files in the sourecPaths
4296
4296
*/
4297
- private List <String > getFilesWithUnnamedPackages ( List <String > sourcePaths , List <String > files )
4297
+ private List <String > getFilesWithUnnamedPackages ( Collection <String > sourcePaths , List <String > files )
4298
4298
{
4299
4299
return getPackageNamesOrFilesWithUnnamedPackages ( sourcePaths , files , false );
4300
4300
}
@@ -4307,7 +4307,7 @@ private List<String> getFilesWithUnnamedPackages( List<String> sourcePaths, List
4307
4307
* @see #getFiles(List)
4308
4308
* @see #getSourcePaths()
4309
4309
*/
4310
- private List <String > getPackageNamesOrFilesWithUnnamedPackages ( List <String > sourcePaths , List <String > files ,
4310
+ private List <String > getPackageNamesOrFilesWithUnnamedPackages ( Collection <String > sourcePaths , List <String > files ,
4311
4311
boolean onlyPackageName )
4312
4312
{
4313
4313
List <String > returnList = new ArrayList <>();
@@ -4624,7 +4624,7 @@ private void validateStandardDocletOptions()
4624
4624
* @throws MavenReportException if any
4625
4625
* @see <a href="http://docs.oracle.com/javase/7/docs/technotes/tools/windows/javadoc.html#javadocoptions">http://docs.oracle.com/javase/7/docs/technotes/tools/windows/javadoc.html#javadocoptions</a>
4626
4626
*/
4627
- private void addJavadocOptions ( List <String > arguments , List <String > sourcePaths )
4627
+ private void addJavadocOptions ( List <String > arguments , Collection <String > sourcePaths )
4628
4628
throws MavenReportException
4629
4629
{
4630
4630
validateJavadocOptions ();
0 commit comments