summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCaspar De Groot2011-07-04 05:22:35 (EDT)
committerCaspar De Groot2011-07-04 05:22:35 (EDT)
commitdb77db35a1fd6bd43fdc516f30052c4f2039f4f1 (patch)
tree4cd37983623131af340cc7753a435da959e38590
parent57aa94e151446b9ff681e21ef292d7889f9c7a8c (diff)
downloadcdo-db77db35a1fd6bd43fdc516f30052c4f2039f4f1.zip
cdo-db77db35a1fd6bd43fdc516f30052c4f2039f4f1.tar.gz
cdo-db77db35a1fd6bd43fdc516f30052c4f2039f4f1.tar.bz2
[Bug 351042] CommitIntegrityCheck should use #equals when comparing OIDs
https://bugs.eclipse.org/bugs/show_bug.cgi?id=351042
-rw-r--r--plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/util/CommitIntegrityCheck.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/util/CommitIntegrityCheck.java b/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/util/CommitIntegrityCheck.java
index a971760..e841719 100644
--- a/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/util/CommitIntegrityCheck.java
+++ b/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/util/CommitIntegrityCheck.java
@@ -165,7 +165,7 @@ public class CommitIntegrityCheck
// @1
CDOID currentContainerID = (CDOID)transaction.convertObjectToID(dirtyRev.getContainerID());
CDOID cleanContainerID = (CDOID)transaction.convertObjectToID(cleanRev.getContainerID());
- if (currentContainerID != cleanContainerID)
+ if (!CDOIDUtil.equals(currentContainerID, cleanContainerID))
{
if (currentContainerID != CDOID.NULL)
{
@@ -184,7 +184,7 @@ public class CommitIntegrityCheck
// @3
CDOID currentResourceID = (CDOID)transaction.convertObjectToID(dirtyRev.getResourceID());
CDOID cleanResourceID = (CDOID)transaction.convertObjectToID(cleanRev.getResourceID());
- if (currentResourceID != cleanResourceID)
+ if (!CDOIDUtil.equals(currentResourceID, cleanResourceID))
{
if (currentResourceID != CDOID.NULL)
{