Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVictor Roldan Betancort2012-03-05 06:04:46 -0500
committerVictor Roldan Betancort2012-03-05 06:04:46 -0500
commitc9ef64734d58570258cff0cc4a3fe24024512ae7 (patch)
tree6c9985bec7d76bb0c3bc58e759606e2255d75f19
parentfbefbede8d97fa2186820629d450f545468accc0 (diff)
downloadcdo-c9ef64734d58570258cff0cc4a3fe24024512ae7.tar.gz
cdo-c9ef64734d58570258cff0cc4a3fe24024512ae7.tar.xz
cdo-c9ef64734d58570258cff0cc4a3fe24024512ae7.zip
366840: Improve performance of
CDOTransactionImpl.getID(InternalCDOObject, boolean) https://bugs.eclipse.org/bugs/show_bug.cgi?id=366840
-rw-r--r--plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/transaction/CDOTransactionImpl.java9
1 files changed, 3 insertions, 6 deletions
diff --git a/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/transaction/CDOTransactionImpl.java b/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/transaction/CDOTransactionImpl.java
index 709d2e632b..a8c55e882f 100644
--- a/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/transaction/CDOTransactionImpl.java
+++ b/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/transaction/CDOTransactionImpl.java
@@ -2065,13 +2065,10 @@ public class CDOTransactionImpl extends CDOViewImpl implements InternalCDOTransa
// The super implementation will return null for a transient (unattached) object;
// but in a tx, an transient object may previously have been attached. So we consult
// the cleanRevisions if that's the case.
- if (getDetachedObjects().containsValue(object))
+ CDORevisionKey revKey = cleanRevisions.get(object);
+ if (revKey != null && getDetachedObjects().containsValue(object))
{
- CDORevisionKey revKey = cleanRevisions.get(object);
- if (revKey != null)
- {
- id = revKey.getID();
- }
+ id = revKey.getID();
}
return id;

Back to the top