commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joerg Schaible (JIRA)" <j...@apache.org>
Subject [jira] Updated: (VFS-126) Implementation of compareTo in FileSystemOptions.FileSystemOptionKey
Date Tue, 18 Aug 2009 12:04:14 GMT

     [ https://issues.apache.org/jira/browse/VFS-126?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Joerg Schaible updated VFS-126:
-------------------------------

    Affects Version/s: 1.0
             Assignee: Joerg Schaible

> Implementation of compareTo in FileSystemOptions.FileSystemOptionKey
> --------------------------------------------------------------------
>
>                 Key: VFS-126
>                 URL: https://issues.apache.org/jira/browse/VFS-126
>             Project: Commons VFS
>          Issue Type: Bug
>    Affects Versions: 1.0
>            Reporter: Gilles Gaillard
>            Assignee: Joerg Schaible
>            Priority: Trivial
>             Fix For: 2.0
>
>
> 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.


Mime
View raw message