commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From joe...@apache.org
Subject svn commit: r805379 - /commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/FileSystemOptions.java
Date Tue, 18 Aug 2009 12:04:09 GMT
Author: joehni
Date: Tue Aug 18 12:04:08 2009
New Revision: 805379

URL: http://svn.apache.org/viewvc?rev=805379&view=rev
Log:
Fix FileSystemOptionKey.compareTo (VFS-126).

Modified:
    commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/FileSystemOptions.java

Modified: commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/FileSystemOptions.java
URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/FileSystemOptions.java?rev=805379&r1=805378&r2=805379&view=diff
==============================================================================
--- commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/FileSystemOptions.java
(original)
+++ commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/FileSystemOptions.java
Tue Aug 18 12:04:08 2009
@@ -37,7 +37,7 @@
     /**
      * Keys in the options Map.
      */
-    private final class FileSystemOptionKey implements Comparable
+    private final static class FileSystemOptionKey implements Comparable
     {
         /** Constant used to create hashcode */
         private static final int HASH = 29;
@@ -58,7 +58,7 @@
         {
             FileSystemOptionKey k = (FileSystemOptionKey) o;
 
-            int ret = k.fileSystemClass.getName().compareTo(k.fileSystemClass.getName());
+            int ret = fileSystemClass.getName().compareTo(k.fileSystemClass.getName());
             if (ret != 0)
             {
                 return ret;
@@ -161,4 +161,5 @@
         // TODO: compare Entry by Entry
         return 0;
     }
+    
 }



Mime
View raw message