diff options
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.net4j/src/org/eclipse/emf/cdo/internal/net4j/protocol/AbstractSyncRevisionsRequest.java')
-rw-r--r-- | plugins/org.eclipse.emf.cdo.net4j/src/org/eclipse/emf/cdo/internal/net4j/protocol/AbstractSyncRevisionsRequest.java | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/plugins/org.eclipse.emf.cdo.net4j/src/org/eclipse/emf/cdo/internal/net4j/protocol/AbstractSyncRevisionsRequest.java b/plugins/org.eclipse.emf.cdo.net4j/src/org/eclipse/emf/cdo/internal/net4j/protocol/AbstractSyncRevisionsRequest.java index 3d2b431595..857a8927e4 100644 --- a/plugins/org.eclipse.emf.cdo.net4j/src/org/eclipse/emf/cdo/internal/net4j/protocol/AbstractSyncRevisionsRequest.java +++ b/plugins/org.eclipse.emf.cdo.net4j/src/org/eclipse/emf/cdo/internal/net4j/protocol/AbstractSyncRevisionsRequest.java @@ -77,12 +77,6 @@ public abstract class AbstractSyncRevisionsRequest extends CDOClientRequest<Coll protected Collection<CDORefreshContext> confirming(CDODataInput in) throws IOException { InternalCDORevisionManager revisionManager = getSession().getRevisionManager(); - /* - * Comparator<CDOBranchPoint> comparator = new Comparator<CDOBranchPoint>() { public int compare(CDOBranchPoint bp1, - * CDOBranchPoint bp2) { long diff = bp1.getTimeStamp() - bp2.getTimeStamp(); return diff == 0 ? 0 : diff > 0 ? 1 : - * -1; } }; Map<CDOBranchPoint, CDORefreshContext> refreshContexts = new TreeMap<CDOBranchPoint, - * CDORefreshContext>(comparator); - */ Map<Long, CDORefreshContext> refreshContexts = new TreeMap<Long, CDORefreshContext>(); int dirtyCount = in.readInt(); @@ -127,19 +121,6 @@ public abstract class AbstractSyncRevisionsRequest extends CDOClientRequest<Coll TRACER.trace("Synchronization received " + detachedCount + " detached objects"); //$NON-NLS-1$ //$NON-NLS-2$ } - // Replace the collections with unmodifiable ones - for (CDORefreshContext refreshContext : refreshContexts.values()) - { - Set<CDOIDAndVersion> dirtyObjects = refreshContext.getDirtyObjects(); - Collection<CDOID> detachedObjects = refreshContext.getDetachedObjects(); - - dirtyObjects = Collections.unmodifiableSet(dirtyObjects); - detachedObjects = Collections.unmodifiableCollection(detachedObjects); - - ((CDORefreshContextImpl)refreshContext).setDirtyObjects(dirtyObjects); - ((CDORefreshContextImpl)refreshContext).setDetachedObjects(detachedObjects); - } - return Collections.unmodifiableCollection(refreshContexts.values()); } |