roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Glen Mazza (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (ROL-1994) Switch to Apache Commons Collections 4.0
Date Thu, 26 Jun 2014 02:41:25 GMT

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

Glen Mazza resolved ROL-1994.
-----------------------------

       Resolution: Fixed
    Fix Version/s: 5.1

Now using JDK Collections.reverseOrder() instead of ReverseComparator().

> Switch to Apache Commons Collections 4.0
> ----------------------------------------
>
>                 Key: ROL-1994
>                 URL: https://issues.apache.org/jira/browse/ROL-1994
>             Project: Apache Roller
>          Issue Type: Task
>          Components: Data Model & JPA Backend
>    Affects Versions: 5.1
>            Reporter: Glen Mazza
>            Assignee: Roller Unassigned
>            Priority: Minor
>             Fix For: 5.1
>
>
> In five places we're using a nongeneric "ReverseComparator()" causing IntelliJ idea complaints
that we're doing an unchecked assignment.  Commons Collections 4 supports generic types: https://commons.apache.org/proper/commons-collections/release_4_0.html,
https://commons.apache.org/proper/commons-collections/javadocs/api-release/org/apache/commons/collections4/comparators/ReverseComparator.html.
> A better fix might be to stop using this library altogether and just rely on what the
JDK provides, if possible.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message