]> source.dussan.org Git - jgit.git/commit
Make ObjectId.hashCode final too 41/1341/1
authorShawn O. Pearce <spearce@spearce.org>
Thu, 19 Aug 2010 18:46:22 +0000 (11:46 -0700)
committerShawn O. Pearce <spearce@spearce.org>
Thu, 19 Aug 2010 18:46:22 +0000 (11:46 -0700)
commit5adcd708e4822f77032ef687ac0a7dbcdc852474
tree08c7096c8ef388c6a5f946adc010ad963ab07e7c
parentd0043e5d31e8b923884147ca1bab6e5416497323
Make ObjectId.hashCode final too

Since equals() is now final and does not permit being overridden,
we should do the same thing with hashCode() to prevent different
subclasses from having different hashing 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