Skip to content

Wrong type arguments for transformedComparator() #3

@bxt

Description

@bxt

Is this project still maintained after commons-collections 4.0 with generics is released?

Anyway, there is a minor glitch in ComparatorUtils.java:190:
public static <I,O> Comparator<O> transformedComparator(Comparator<I> comparator, Transformer<I, O> transformer) {
Which should be:
public static <I,O> Comparator<I> transformedComparator(Comparator<O> comparator, Transformer<I, O> transformer) {
The type variables I and O are interchanged for the comparators.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions