Skip to main content

This CGIT instance is deprecated, and repositories have been moved to Gitlab or Github. See the repository descriptions for specific locations.

summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2011-07-25 07:25:23 +0000
committerEike Stepper2011-07-25 07:25:23 +0000
commit348d27b8d1e5f8f6d9e8249ae166ccb497c40647 (patch)
tree1cd100f152376ea7c6e797da9fc8cc8dcfbb8025 /plugins
parentfe99e69cdd1325dcd0ad55049dadca7718ddc652 (diff)
downloadcdo-348d27b8d1e5f8f6d9e8249ae166ccb497c40647.tar.gz
cdo-348d27b8d1e5f8f6d9e8249ae166ccb497c40647.tar.xz
cdo-348d27b8d1e5f8f6d9e8249ae166ccb497c40647.zip
[352561] Support client assigned CDOIDs (UUIDs)
https://bugs.eclipse.org/bugs/show_bug.cgi?id=352561
Diffstat (limited to 'plugins')
-rw-r--r--plugins/org.eclipse.emf.cdo.common/src/org/eclipse/emf/cdo/common/id/CDOIDGenerator.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/org.eclipse.emf.cdo.common/src/org/eclipse/emf/cdo/common/id/CDOIDGenerator.java b/plugins/org.eclipse.emf.cdo.common/src/org/eclipse/emf/cdo/common/id/CDOIDGenerator.java
index 1e5f573790..93da0bc8c0 100644
--- a/plugins/org.eclipse.emf.cdo.common/src/org/eclipse/emf/cdo/common/id/CDOIDGenerator.java
+++ b/plugins/org.eclipse.emf.cdo.common/src/org/eclipse/emf/cdo/common/id/CDOIDGenerator.java
@@ -10,6 +10,8 @@
*/
package org.eclipse.emf.cdo.common.id;
+import org.eclipse.net4j.util.UUIDGenerator;
+
import org.eclipse.emf.ecore.util.EcoreUtil;
/**
@@ -44,7 +46,7 @@ public interface CDOIDGenerator
public CDOID generateCDOID()
{
byte[] bytes = new byte[16];
- EcoreUtil.generateUUID(bytes);
+ UUIDGenerator.DEFAULT.generate(bytes);
return CDOIDUtil.createUUID(bytes);
}

Back to the top