Fix for java 1.5 compilation.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1543971 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
c00465cc99
commit
db058c359e
|
@ -50,8 +50,8 @@ public class ComparatorUtils {
|
|||
*
|
||||
* @see ComparableComparator#comparableComparator()
|
||||
*/
|
||||
@SuppressWarnings("rawtypes")
|
||||
public static final Comparator NATURAL_COMPARATOR = ComparableComparator.comparableComparator();
|
||||
@SuppressWarnings({ "rawtypes", "unchecked" }) // explicit type needed for Java 1.5 compilation
|
||||
public static final Comparator NATURAL_COMPARATOR = ComparableComparator.<Comparable>comparableComparator();
|
||||
|
||||
/**
|
||||
* Gets a comparator that uses the natural order of the objects.
|
||||
|
|
Loading…
Reference in New Issue