SessionIds are meant to represent UUIDs
So make it easier to construct one that is actually based
on a UUID.
package org.openqa.selenium.remote;
import java.util.Objects;
+import java.util.UUID;
public class SessionId {
private final String opaqueKey;
+ public SessionId(UUID uuid) {
+ this(Objects.requireNonNull(uuid, "Session ID key has not been set.").toString());
+ }
+
public SessionId(String opaqueKey) {
this.opaqueKey = Objects.requireNonNull(opaqueKey, "Session ID key has not been set.");
}
