diff options
author | Victor Roldan Betancort | 2011-12-15 17:51:14 +0000 |
---|---|---|
committer | Victor Roldan Betancort | 2011-12-15 17:51:14 +0000 |
commit | 08f91621064af191219e4c5bab14c8e0a8062855 (patch) | |
tree | 7e19536b9f9d18533ad8d8ddbb930d224748da15 | |
parent | 45431d2c257df7b91e615b6cb243383bf6854738 (diff) | |
download | cdo-08f91621064af191219e4c5bab14c8e0a8062855.tar.gz cdo-08f91621064af191219e4c5bab14c8e0a8062855.tar.xz cdo-08f91621064af191219e4c5bab14c8e0a8062855.zip |
Bug 366803 - Improve performance of
CDOTransactionImpl.getID(InternalCDOObject, boolean)
-rw-r--r-- | plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/transaction/CDOTransactionImpl.java | 9 |
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 e997f8ed64..f8d18c7e8b 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 @@ -2087,13 +2087,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; |