Gah! Gringos falling from the sky?

git-svn-id: https://samskivert.googlecode.com/svn/trunk@2778 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
ray.j.greenwell
2010-04-16 01:12:27 +00:00
parent 40e36046d0
commit 181eb3faf0
@@ -57,6 +57,7 @@ public class ObjectUtil
* Compares two objects, returning -1 if left is null and right is not and 1 if left is
* non-null and right is null.
*/
@ReplacedBy("com.google.common.collect.Ordering.natural().nullsFirst().compare()")
public static <T extends Comparable<? super T>> int compareTo (T left, T right)
{
if (left == right) { // instances are both null or both the same instance