You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by jo...@apache.org on 2009/08/18 14:04:09 UTC

svn commit: r805379 - /commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/FileSystemOptions.java

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;
     }
+    
 }