Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2008-11-03 07:42:17 -0500
committerEike Stepper2008-11-03 07:42:17 -0500
commit698f56e9d769e631cc8f0f77712c4bd17627ec21 (patch)
tree392cee09eebcb485872df351866869af9424aa69
parentde129c29c1aaebc80f4914522586874158354909 (diff)
downloadcdo-698f56e9d769e631cc8f0f77712c4bd17627ec21.tar.gz
cdo-698f56e9d769e631cc8f0f77712c4bd17627ec21.tar.xz
cdo-698f56e9d769e631cc8f0f77712c4bd17627ec21.zip
revised >= 0
-rw-r--r--plugins/org.eclipse.emf.cdo.common/src/org/eclipse/emf/cdo/internal/common/revision/CDORevisionImpl.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/org.eclipse.emf.cdo.common/src/org/eclipse/emf/cdo/internal/common/revision/CDORevisionImpl.java b/plugins/org.eclipse.emf.cdo.common/src/org/eclipse/emf/cdo/internal/common/revision/CDORevisionImpl.java
index ee3ecd087d..6ea1b6b5cb 100644
--- a/plugins/org.eclipse.emf.cdo.common/src/org/eclipse/emf/cdo/internal/common/revision/CDORevisionImpl.java
+++ b/plugins/org.eclipse.emf.cdo.common/src/org/eclipse/emf/cdo/internal/common/revision/CDORevisionImpl.java
@@ -249,7 +249,7 @@ public class CDORevisionImpl implements InternalCDORevision
public void setRevised(long revised)
{
- if (revised != UNSPECIFIED_DATE && revised < created)
+ if (revised != UNSPECIFIED_DATE && revised < Math.max(0, created))
{
throw new IllegalArgumentException("created=" + created + ", revised=" + revised);
}

Back to the top