Another spot where a safer comparison is called for.
This commit is contained in:
@@ -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());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user