]> source.dussan.org Git - jgit.git/commit
Backout RevObject's object-identity based equals implementation 13/1313/1
authorMatthias Sohn <matthias.sohn@sap.com>
Sun, 15 Aug 2010 21:12:58 +0000 (23:12 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Sun, 15 Aug 2010 21:12:58 +0000 (23:12 +0200)
commit2d3a806271ee5b9bb66e32f2aa934b36be7b1408
tree8119370583121cd45de321f82c90b77d302bf027
parent8d761febc3dd3fc3e0258a17526f6479757637f6
Backout RevObject's  object-identity based equals implementation

This restores the transitivity and symmetry properties of the equals
methods on the AnyObjectId type hierarchy as defined in [1].
Following [2] we declare these equals methods final to ensure that
semantics of equals are consistent across AnyObjectId's type hierarchy.

[1] http://download-llnw.oracle.com/javase/6/docs/api/java/lang/Object.html#equals(java.lang.Object)
[2] http://www.angelikalanger.com/Articles/JavaSolutions/SecretsOfEquals/Equals.html

Bug: 321502
Change-Id: Ibace21fa268c4aa15da6c65d42eb705ab1aa24b3
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/revwalk/RevObjectTest.java
org.eclipse.jgit/src/org/eclipse/jgit/lib/AnyObjectId.java
org.eclipse.jgit/src/org/eclipse/jgit/revwalk/RevObject.java