From: Shawn O. Pearce Date: Mon, 05 Jan 2009 02:19:59 GMT Subject: Re: [EGIT PATCH] Fixed trivial warnings. Mainly parametrized raw types, added serialVersionUID, removed unnecessery throws. Message-ID: <20090105021959.GB20973@spearce.org> In-Reply-To: Vasyl' Vavrychuk wrote: > Not sure what is right: > public abstract class AnyObjectId implements Comparable { > or > public abstract class AnyObjectId implements Comparable { > > IMHO second, but class AnyObjectId contains some compareTo(ObjectId). Hmmph. That probably can be AnyObjectId. At one point we only had ObjectId, then AnyObjectId was introduced as a base so we can have the immutable AnyObjectId and the mutable MutableObjectId subclasses. compareTo doesn't care about the mutable state of its argument, this is probably left-over code that didn't get converted when we added the AnyObjectId base class. So it should be the second, and the compareTo method should be made to match that. -- Shawn.