Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.server.net4j/src/org/eclipse/emf/cdo/server/internal/net4j/protocol/HandleRevisionsIndication.java')
-rw-r--r--plugins/org.eclipse.emf.cdo.server.net4j/src/org/eclipse/emf/cdo/server/internal/net4j/protocol/HandleRevisionsIndication.java43
1 files changed, 22 insertions, 21 deletions
diff --git a/plugins/org.eclipse.emf.cdo.server.net4j/src/org/eclipse/emf/cdo/server/internal/net4j/protocol/HandleRevisionsIndication.java b/plugins/org.eclipse.emf.cdo.server.net4j/src/org/eclipse/emf/cdo/server/internal/net4j/protocol/HandleRevisionsIndication.java
index 506317d098..e736ea5a2b 100644
--- a/plugins/org.eclipse.emf.cdo.server.net4j/src/org/eclipse/emf/cdo/server/internal/net4j/protocol/HandleRevisionsIndication.java
+++ b/plugins/org.eclipse.emf.cdo.server.net4j/src/org/eclipse/emf/cdo/server/internal/net4j/protocol/HandleRevisionsIndication.java
@@ -93,28 +93,29 @@ public class HandleRevisionsIndication extends CDOServerReadIndication
final IOException[] ioException = { null };
final RuntimeException[] runtimeException = { null };
- getRepository().handleRevisions(eClass, branch, exactBranch, timeStamp, exactTime, new CDORevisionHandler()
- {
- public boolean handleRevision(CDORevision revision)
- {
- try
- {
- out.writeBoolean(true);
- out.writeCDORevision(revision, CDORevision.UNCHUNKED);
- return true;
- }
- catch (IOException ex)
+ getRepository().handleRevisions(eClass, branch, exactBranch, timeStamp, exactTime,
+ new CDORevisionHandler.Filtered.Undetached(new CDORevisionHandler()
{
- ioException[0] = ex;
- }
- catch (RuntimeException ex)
- {
- runtimeException[0] = ex;
- }
-
- return false;
- }
- });
+ public boolean handleRevision(CDORevision revision)
+ {
+ try
+ {
+ out.writeBoolean(true);
+ out.writeCDORevision(revision, CDORevision.UNCHUNKED);
+ return true;
+ }
+ catch (IOException ex)
+ {
+ ioException[0] = ex;
+ }
+ catch (RuntimeException ex)
+ {
+ runtimeException[0] = ex;
+ }
+
+ return false;
+ }
+ }));
if (ioException[0] != null)
{

Back to the top