Refactor CMS UUID factory
[lgpl/argeo-commons.git] / org.argeo.api.uuid / src / org / argeo / api / uuid / MacAddressUuidFactory.java
index f9004ce3e6782e1f207b41a61be0ae6c2405fb37..51d68e3ef2aefb0420366ae212a17c108e229ceb 100644 (file)
@@ -11,7 +11,7 @@ import java.util.UUID;
  * An {@link UUID} factory whose node id (for time based UUIDs) is the hardware
  * MAC address as specified in RFC4122.
  * 
- * @see https://datatracker.ietf.org/doc/html/rfc4122.html#section-4.1.6
+ * @see "https://datatracker.ietf.org/doc/html/rfc4122.html#section-4.1.6"
  */
 public class MacAddressUuidFactory extends ConcurrentUuidFactory {
        public MacAddressUuidFactory() {
@@ -52,7 +52,7 @@ public class MacAddressUuidFactory extends ConcurrentUuidFactory {
 
        }
 
-       public static byte[] hardwareAddressToNodeId(NetworkInterface nic) {
+       public static byte[] hardwareAddressToNodeId(NetworkInterface nic) throws IllegalStateException {
                try {
                        byte[] hardwareAddress = nic.getHardwareAddress();
                        final int length = 6;