You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by sl...@apache.org on 2021/04/10 09:21:56 UTC

[maven-shared-io] 01/02: [MSHARED-930] Update generics

This is an automated email from the ASF dual-hosted git repository.

slachiewicz pushed a commit to branch MSHARED-930
in repository https://gitbox.apache.org/repos/asf/maven-shared-io.git

commit a129c7c0e30f4b37bdc3d60cf0a319dd4cd5de7c
Author: Sylwester Lachiewicz <sl...@apache.org>
AuthorDate: Sat Apr 10 11:16:22 2021 +0200

    [MSHARED-930] Update generics
---
 .../maven/shared/io/scan/SimpleResourceInclusionScanner.java      | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/main/java/org/apache/maven/shared/io/scan/SimpleResourceInclusionScanner.java b/src/main/java/org/apache/maven/shared/io/scan/SimpleResourceInclusionScanner.java
index eb86017..16dd82d 100644
--- a/src/main/java/org/apache/maven/shared/io/scan/SimpleResourceInclusionScanner.java
+++ b/src/main/java/org/apache/maven/shared/io/scan/SimpleResourceInclusionScanner.java
@@ -34,9 +34,9 @@ import org.apache.maven.shared.io.scan.mapping.SourceMapping;
 public class SimpleResourceInclusionScanner
     extends AbstractResourceInclusionScanner
 {
-    private Set<String> sourceIncludes;
+    private final Set<String> sourceIncludes;
 
-    private Set<String> sourceExcludes;
+    private final Set<String> sourceExcludes;
 
     /**
      * @param sourceIncludes The source includes.
@@ -50,14 +50,14 @@ public class SimpleResourceInclusionScanner
     }
 
     /** {@inheritDoc} */
-    public Set getIncludedSources( File sourceDir, File targetDir )
+    public Set<File> getIncludedSources( File sourceDir, File targetDir )
         throws InclusionScanException
     {
         List<SourceMapping> srcMappings = getSourceMappings();
 
         if ( srcMappings.isEmpty() )
         {
-            return Collections.<File>emptySet();
+            return Collections.emptySet();
         }
 
         Set<File> matchingSources = new HashSet<>();