]> source.dussan.org Git - jgit.git/commit
Make ObjectId.compareTo final 42/1342/1
authorShawn O. Pearce <spearce@spearce.org>
Thu, 19 Aug 2010 18:50:20 +0000 (11:50 -0700)
committerShawn O. Pearce <spearce@spearce.org>
Thu, 19 Aug 2010 18:50:20 +0000 (11:50 -0700)
commit1c2290c8d6e69b50fa4f474aeb7968cd4f1485b7
tree1ea7e10917038065b4b2801c50edbdf10deebf04
parent5adcd708e4822f77032ef687ac0a7dbcdc852474
Make ObjectId.compareTo final

Since equals() is now final and does not permit being overridden,
we should do the same thing with compareTo() to prevent different
subclasses from having different ordering behaviors.  This could
lead to the same mess that we had with different equals() behaviors.

Change-Id: I35a849b6efccee5fe74cc5788a3566a1516004b7
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.eclipse.jgit/src/org/eclipse/jgit/lib/AnyObjectId.java