ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mben...@apache.org
Subject svn commit: r289261 - /ant/core/trunk/src/main/org/apache/tools/ant/types/resources/comparators/FileSystem.java
Date Thu, 15 Sep 2005 15:38:26 GMT
Author: mbenson
Date: Thu Sep 15 08:38:22 2005
New Revision: 289261

URL: http://svn.apache.org/viewcvs?rev=289261&view=rev
Log:
fileUtils -> final FILE_UTILS

Modified:
    ant/core/trunk/src/main/org/apache/tools/ant/types/resources/comparators/FileSystem.java

Modified: ant/core/trunk/src/main/org/apache/tools/ant/types/resources/comparators/FileSystem.java
URL: http://svn.apache.org/viewcvs/ant/core/trunk/src/main/org/apache/tools/ant/types/resources/comparators/FileSystem.java?rev=289261&r1=289260&r2=289261&view=diff
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/types/resources/comparators/FileSystem.java
(original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/types/resources/comparators/FileSystem.java
Thu Sep 15 08:38:22 2005
@@ -26,7 +26,7 @@
  * @since Ant 1.7
  */
 public class FileSystem extends ResourceComparator {
-    private static FileUtils fileUtils = FileUtils.getFileUtils();
+    private static final FileUtils FILE_UTILS = FileUtils.getFileUtils();
 
     /**
      * Compare two Resources.
@@ -40,9 +40,9 @@
         File foofile = ((FileResource) foo).getFile();
         File barfile = ((FileResource) bar).getFile();
         return foofile.equals(barfile) ? 0
-            : fileUtils.isLeadingPath(foofile, barfile) ? -1
-            : fileUtils.normalize(foofile.getAbsolutePath()).compareTo(
-                fileUtils.normalize(barfile.getAbsolutePath()));
+            : FILE_UTILS.isLeadingPath(foofile, barfile) ? -1
+            : FILE_UTILS.normalize(foofile.getAbsolutePath()).compareTo(
+                FILE_UTILS.normalize(barfile.getAbsolutePath()));
     }
 
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message