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:
Thomas Neidhart 2013-11-20 22:16:05 +00:00
parent c00465cc99
commit db058c359e
1 changed files with 2 additions and 2 deletions

View File

@ -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.