Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2013-03-19 07:06:18 +0000
committerEike Stepper2013-03-19 07:06:18 +0000
commit91cb657a942da02218e5fe202b1539a421a4a5a9 (patch)
tree9cea6f6a1065a45392bc457121fd5ceb590a9336 /plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/util
parent394eeb0f8062e61fcbc56f14d44a72c7d45fce1f (diff)
downloadcdo-91cb657a942da02218e5fe202b1539a421a4a5a9.tar.gz
cdo-91cb657a942da02218e5fe202b1539a421a4a5a9.tar.xz
cdo-91cb657a942da02218e5fe202b1539a421a4a5a9.zip
[402371] CDOCompareUtil.compare fails with models that use Containmentdrops/S20130319-0336committers/estepper/emf-compare-proxies
Proxies https://bugs.eclipse.org/bugs/show_bug.cgi?id=402371
Diffstat (limited to 'plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/util')
-rw-r--r--plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/util/CommitIntegrityCheck.java10
1 files changed, 3 insertions, 7 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 2eab4eaf5c..3ecce96036 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
@@ -130,11 +130,7 @@ public class CommitIntegrityCheck
if (CDOIDUtil.isNull(containerOrResourceID))
{
- idOrObject = revision.getResourceID();
- if (idOrObject != null)
- {
- containerOrResourceID = (CDOID)transaction.convertObjectToID(idOrObject);
- }
+ containerOrResourceID = revision.getResourceID();
}
return containerOrResourceID;
@@ -182,8 +178,8 @@ public class CommitIntegrityCheck
// Nothing to be done. (I think...)
// @3
- CDOID currentResourceID = (CDOID)transaction.convertObjectToID(dirtyRev.getResourceID());
- CDOID cleanResourceID = (CDOID)transaction.convertObjectToID(cleanRev.getResourceID());
+ CDOID currentResourceID = dirtyRev.getResourceID();
+ CDOID cleanResourceID = cleanRev.getResourceID();
if (!CDOIDUtil.equals(currentResourceID, cleanResourceID))
{
if (currentResourceID != CDOID.NULL)

Back to the top