Remove static default UUID factory
authorMathieu Baudier <mbaudier@argeo.org>
Sat, 30 Jul 2022 09:11:23 +0000 (11:11 +0200)
committerMathieu Baudier <mbaudier@argeo.org>
Sat, 30 Jul 2022 09:11:23 +0000 (11:11 +0200)
org.argeo.api.uuid/src/org/argeo/api/uuid/MacAddressUuidFactory.java
org.argeo.cms/src/org/argeo/cms/acr/SingleUserContentRepository.java

index ab6d55d207ae9576dfd92dc32b5c90a660b17bc2..f9004ce3e6782e1f207b41a61be0ae6c2405fb37 100644 (file)
@@ -14,8 +14,6 @@ import java.util.UUID;
  * @see https://datatracker.ietf.org/doc/html/rfc4122.html#section-4.1.6
  */
 public class MacAddressUuidFactory extends ConcurrentUuidFactory {
-       public final static UuidFactory DEFAULT = new MacAddressUuidFactory();
-
        public MacAddressUuidFactory() {
                this(0, localHardwareAddressAsNodeId());
        }
index 8125555f9912890258cba87b35daf723e6fef1e3..5e7c191e269c5f3fef0ff401db2af253fee6149c 100644 (file)
@@ -26,7 +26,7 @@ public class SingleUserContentRepository extends AbstractContentRepository {
 
        private UUID uuid;
 
-       private UuidFactory uuidFactory = MacAddressUuidFactory.DEFAULT;
+       private UuidFactory uuidFactory = new MacAddressUuidFactory();
 
        // the single session
        private CmsContentSession contentSession;