X-Git-Url: https://git.argeo.org/?p=lgpl%2Fargeo-commons.git;a=blobdiff_plain;f=org.argeo.api.uuid%2Fsrc%2Forg%2Fargeo%2Fapi%2Fuuid%2FAbstractAsyncUuidFactory.java;h=2b4c27f3fac693defff64b53ea2141767022a6b7;hp=f57462388959f2fb9e64c8dd55c0da38cdaf8bd0;hb=5550fa28a7578ce6dbc50d1f94bb4740c1f3ec32;hpb=e846ef84146b66ae543c29c5f17b2991ff0f5973 diff --git a/org.argeo.api.uuid/src/org/argeo/api/uuid/AbstractAsyncUuidFactory.java b/org.argeo.api.uuid/src/org/argeo/api/uuid/AbstractAsyncUuidFactory.java index f57462388..2b4c27f3f 100644 --- a/org.argeo.api.uuid/src/org/argeo/api/uuid/AbstractAsyncUuidFactory.java +++ b/org.argeo.api.uuid/src/org/argeo/api/uuid/AbstractAsyncUuidFactory.java @@ -64,14 +64,11 @@ public abstract class AbstractAsyncUuidFactory extends AbstractUuidFactory imple if (nodeIdSupplier == null) throw new IllegalStateException("No node id supplier available"); UUID uuid = new UUID(timeUuidState.getMostSignificantBits(), timeUuidState.getLeastSignificantBits()); - long clockSequence = timeUuidState.getClockSequence(); - long timestamp = timeUuidState.getLastTimestamp(); - // assert uuid.node() == longFromBytes(node); - assert uuid.timestamp() == timestamp; - assert uuid.clockSequence() == clockSequence - : "uuid.clockSequence()=" + uuid.clockSequence() + " clockSequence=" + clockSequence; + assert uuid.version() == 1; assert uuid.variant() == 2; + assert uuid.timestamp() == timeUuidState.getLastTimestamp(); + assert uuid.clockSequence() == timeUuidState.getClockSequence(); return uuid; }