maven-scm-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From car...@apache.org
Subject svn commit: r397253 - /maven/scm/trunk/maven-scm-api/src/main/java/org/apache/maven/scm/ScmFileSet.java
Date Wed, 26 Apr 2006 17:48:45 GMT
Author: carlos
Date: Wed Apr 26 10:48:41 2006
New Revision: 397253

URL: http://svn.apache.org/viewcvs?rev=397253&view=rev
Log:
Prevent problems when returning an unmodifiable list

Modified:
    maven/scm/trunk/maven-scm-api/src/main/java/org/apache/maven/scm/ScmFileSet.java

Modified: maven/scm/trunk/maven-scm-api/src/main/java/org/apache/maven/scm/ScmFileSet.java
URL: http://svn.apache.org/viewcvs/maven/scm/trunk/maven-scm-api/src/main/java/org/apache/maven/scm/ScmFileSet.java?rev=397253&r1=397252&r2=397253&view=diff
==============================================================================
--- maven/scm/trunk/maven-scm-api/src/main/java/org/apache/maven/scm/ScmFileSet.java (original)
+++ maven/scm/trunk/maven-scm-api/src/main/java/org/apache/maven/scm/ScmFileSet.java Wed Apr
26 10:48:41 2006
@@ -18,8 +18,8 @@
 
 import java.io.File;
 import java.io.IOException;
+import java.util.ArrayList;
 import java.util.Arrays;
-import java.util.Collections;
 import java.util.List;
 
 import org.codehaus.plexus.util.FileUtils;
@@ -40,9 +40,7 @@
     /**
      * List of File objects, all relative to the basedir.
      */
-    private List files = Collections.EMPTY_LIST;
-
-    private static final File[] EMPTY_FILE_ARRAY = new File[0];
+    private List files = new ArrayList( 0 );
 
     /**
      * Create a file set with no files, only the base directory.
@@ -51,7 +49,7 @@
      */
     public ScmFileSet( File basedir )
     {
-        this( basedir, EMPTY_FILE_ARRAY );
+        this( basedir, new ArrayList( 0 ) );
     }
 
     /**



Mime
View raw message