Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2016-08-31 12:53:35 -0400
committerEike Stepper2016-08-31 12:53:35 -0400
commit71e7b5a2fd812a404209529a43ff6a87c7dc3abc (patch)
tree29d09d6f40c32f9246c9d75ee9f660a5b389f75c
parentdb5648d430418882f309c19c455032d69d4f5702 (diff)
downloadcdo-bug_387564.tar.gz
cdo-bug_387564.tar.xz
cdo-bug_387564.zip
[500578] Invalid toString in CDOClassInfoImpl$RevisionWithIDbug_387564
https://bugs.eclipse.org/bugs/show_bug.cgi?id=500578
-rw-r--r--plugins/org.eclipse.emf.cdo.common/src/org/eclipse/emf/cdo/internal/common/model/CDOClassInfoImpl.java9
1 files changed, 1 insertions, 8 deletions
diff --git a/plugins/org.eclipse.emf.cdo.common/src/org/eclipse/emf/cdo/internal/common/model/CDOClassInfoImpl.java b/plugins/org.eclipse.emf.cdo.common/src/org/eclipse/emf/cdo/internal/common/model/CDOClassInfoImpl.java
index db826a35e9..defdc5140c 100644
--- a/plugins/org.eclipse.emf.cdo.common/src/org/eclipse/emf/cdo/internal/common/model/CDOClassInfoImpl.java
+++ b/plugins/org.eclipse.emf.cdo.common/src/org/eclipse/emf/cdo/internal/common/model/CDOClassInfoImpl.java
@@ -21,8 +21,6 @@ import org.eclipse.emf.cdo.spi.common.model.InternalCDOClassInfo;
import org.eclipse.emf.cdo.spi.common.revision.InternalCDORevision;
import org.eclipse.emf.cdo.spi.common.revision.StubCDORevision;
-import org.eclipse.net4j.util.ImplementationError;
-
import org.eclipse.emf.common.notify.Adapter;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.Notifier;
@@ -446,11 +444,6 @@ public final class CDOClassInfoImpl implements InternalCDOClassInfo, Adapter.Int
return getClassInfo().getRevisionForID(null);
}
- if (id.equals(this.id))
- {
- throw new ImplementationError(); // XXX Remove me
- }
-
return new RevisionWithID(getClassInfo(), id);
}
@@ -463,7 +456,7 @@ public final class CDOClassInfoImpl implements InternalCDOClassInfo, Adapter.Int
@Override
public String toString()
{
- return MessageFormat.format("RevisionWithoutID[{0}, {1}]", getClassInfo(), id);
+ return MessageFormat.format("RevisionWithID[{0}, {1}]", getClassInfo(), id);
}
}
}

Back to the top