commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gilles Gaillard (JIRA)" <j...@apache.org>
Subject [jira] Created: (VFS-126) Implementation of compareTo in FileSystemOptions.FileSystemOptionKey
Date Wed, 18 Apr 2007 11:15:15 GMT
Implementation of compareTo in FileSystemOptions.FileSystemOptionKey
--------------------------------------------------------------------

                 Key: VFS-126
                 URL: https://issues.apache.org/jira/browse/VFS-126
             Project: Commons VFS
          Issue Type: Bug
            Reporter: Gilles Gaillard
            Priority: Trivial


Implementation of methof FileSystemOptions.FileSystemOptionKey.compareTo is:
        public int compareTo(Object o)
        {
            FileSystemOptionKey k = (FileSystemOptionKey) o;
            int ret = k.fileSystemClass.getName().compareTo(k.fileSystemClass.getName());
            if (ret != 0)
            {
                return ret;
            }
            return name.compareTo(k.name);
        }
It looks like if there is a typo and the ret value should be:
            int ret = fileSystemClass.getName().compareTo(k.fileSystemClass.getName());


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


Mime
View raw message