Another spot where a safer comparison is called for.

This commit is contained in:
Nathan Curtis
2012-08-16 11:47:38 -07:00
parent 5a1cc88744
commit d2dedd8e65
@@ -336,7 +336,7 @@ public abstract class AbstractMedia
*/ */
protected int naturalCompareTo (AbstractMedia other) protected int naturalCompareTo (AbstractMedia other)
{ {
return hashCode() - other.hashCode(); return Ints.compare(hashCode(), other.hashCode());
} }
/** /**