Some happiness for Eclipse, apparently, from Dave Hoover.

git-svn-id: https://samskivert.googlecode.com/svn/trunk@2668 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
ray.j.greenwell
2009-12-05 01:52:26 +00:00
parent a600bcae9c
commit 6ca4287fb8
@@ -49,8 +49,8 @@ public class Comparators
/** /**
* A comparator that compares {@link Comparable} instances. * A comparator that compares {@link Comparable} instances.
*/ */
@SuppressWarnings("unchecked")
public static final Comparator COMPARABLE = new Comparator() { public static final Comparator COMPARABLE = new Comparator() {
@SuppressWarnings("unchecked")
public int compare (Object o1, Object o2) public int compare (Object o1, Object o2)
{ {
if (o1 == o2) { // catches null == null if (o1 == o2) { // catches null == null
@@ -75,7 +75,7 @@ public class Comparators
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
public static final <T extends Comparable> Comparator<T> comparable () public static final <T extends Comparable> Comparator<T> comparable ()
{ {
return (Comparator<T>) COMPARABLE; return COMPARABLE;
} }
/** /**