You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ace.apache.org by "Wilfried Sibla (JIRA)" <ji...@apache.org> on 2013/10/11 14:15:42 UTC
[jira] [Commented] (ACE-404) Error in Comparator for sorting
artifact recognizer: services are not really sorted depending on their
SERVICE_RANKING
[ https://issues.apache.org/jira/browse/ACE-404?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13792556#comment-13792556 ]
Wilfried Sibla commented on ACE-404:
------------------------------------
the SERVICE_RANK_COMPARATOR can be removed.
Sorting must be done with this line
Arrays.sort(refs, Collections.reverseOrder());
> Error in Comparator for sorting artifact recognizer: services are not really sorted depending on their SERVICE_RANKING
> ----------------------------------------------------------------------------------------------------------------------
>
> Key: ACE-404
> URL: https://issues.apache.org/jira/browse/ACE-404
> Project: ACE
> Issue Type: Bug
> Components: Client Repository
> Affects Versions: 1.0.0
> Reporter: Wilfried Sibla
>
> ArtifactRepositoryImpl.SERVICE_RANK_COMPARATOR, line 542
> is: rank1 = (rankObject2 == null) ? 0 : ((Integer) rankObject2).intValue();
> must be: rank2 = (rankObject2 == null) ? 0 : ((Integer) rankObject2).intValue();
--
This message was sent by Atlassian JIRA
(v6.1#6144)