maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rfscho...@apache.org
Subject svn commit: r1395768 - in /maven/shared/trunk/maven-shared-utils/src/main/java/org/apache/maven/shared/utils/io: DirectoryScanner.java MatchPatterns.java
Date Mon, 08 Oct 2012 20:46:47 GMT
Author: rfscholte
Date: Mon Oct  8 20:46:46 2012
New Revision: 1395768

URL: http://svn.apache.org/viewvc?rev=1395768&view=rev
Log:
Replace array with varArgs where possible

Modified:
    maven/shared/trunk/maven-shared-utils/src/main/java/org/apache/maven/shared/utils/io/DirectoryScanner.java
    maven/shared/trunk/maven-shared-utils/src/main/java/org/apache/maven/shared/utils/io/MatchPatterns.java

Modified: maven/shared/trunk/maven-shared-utils/src/main/java/org/apache/maven/shared/utils/io/DirectoryScanner.java
URL: http://svn.apache.org/viewvc/maven/shared/trunk/maven-shared-utils/src/main/java/org/apache/maven/shared/utils/io/DirectoryScanner.java?rev=1395768&r1=1395767&r2=1395768&view=diff
==============================================================================
--- maven/shared/trunk/maven-shared-utils/src/main/java/org/apache/maven/shared/utils/io/DirectoryScanner.java
(original)
+++ maven/shared/trunk/maven-shared-utils/src/main/java/org/apache/maven/shared/utils/io/DirectoryScanner.java
Mon Oct  8 20:46:46 2012
@@ -403,7 +403,7 @@ public class DirectoryScanner
      * @param includes A list of include patterns. May be <code>null</code>,
indicating that all files should be
      *                 included. If a non-<code>null</code> list is given, all
elements must be non-<code>null</code>.
      */
-    public void setIncludes( final String[] includes )
+    public void setIncludes( final String... includes )
     {
         if ( includes == null )
         {
@@ -434,7 +434,7 @@ public class DirectoryScanner
      * @param excludes A list of exclude patterns. May be <code>null</code>,
indicating that no files should be
      *                 excluded. If a non-<code>null</code> list is given, all
elements must be non-<code>null</code>.
      */
-    public void setExcludes( final String[] excludes )
+    public void setExcludes( final String... excludes )
     {
         if ( excludes == null )
         {
@@ -559,7 +559,7 @@ public class DirectoryScanner
      *
      * @param oldFiles the list of previously captured files names.
      */
-    public DirectoryScanResult diffIncludedFiles( String[] oldFiles )
+    public DirectoryScanResult diffIncludedFiles( String... oldFiles )
     {
         if ( filesIncluded == null )
         {

Modified: maven/shared/trunk/maven-shared-utils/src/main/java/org/apache/maven/shared/utils/io/MatchPatterns.java
URL: http://svn.apache.org/viewvc/maven/shared/trunk/maven-shared-utils/src/main/java/org/apache/maven/shared/utils/io/MatchPatterns.java?rev=1395768&r1=1395767&r2=1395768&view=diff
==============================================================================
--- maven/shared/trunk/maven-shared-utils/src/main/java/org/apache/maven/shared/utils/io/MatchPatterns.java
(original)
+++ maven/shared/trunk/maven-shared-utils/src/main/java/org/apache/maven/shared/utils/io/MatchPatterns.java
Mon Oct  8 20:46:46 2012
@@ -31,7 +31,7 @@ public class MatchPatterns
 {
     private final MatchPattern[] patterns;
 
-    private MatchPatterns( MatchPattern[] patterns )
+    private MatchPatterns( MatchPattern... patterns )
     {
         this.patterns = patterns;
     }



Mime
View raw message