Skip to content

Commit

Permalink
[grid] Make NodeId, Session and Session id serializable
Browse files Browse the repository at this point in the history
  • Loading branch information
pujagani committed Jun 10, 2021
1 parent f811064 commit c0abe97
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion java/client/src/org/openqa/selenium/remote/SessionId.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@
import org.openqa.selenium.internal.Require;
import org.openqa.selenium.json.JsonException;

import java.io.Serializable;
import java.util.Map;
import java.util.UUID;

public class SessionId {
public class SessionId implements Serializable {

private final String opaqueKey;

Expand Down
3 changes: 2 additions & 1 deletion java/server/src/org/openqa/selenium/grid/data/NodeId.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,12 @@

import org.openqa.selenium.internal.Require;

import java.io.Serializable;
import java.util.Comparator;
import java.util.Objects;
import java.util.UUID;

public class NodeId implements Comparable<NodeId> {
public class NodeId implements Comparable<NodeId>, Serializable {

private final UUID uuid;

Expand Down
3 changes: 2 additions & 1 deletion java/server/src/org/openqa/selenium/grid/data/Session.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import org.openqa.selenium.json.JsonInput;
import org.openqa.selenium.remote.SessionId;

import java.io.Serializable;
import java.net.URI;
import java.time.Instant;
import java.util.Map;
Expand All @@ -36,7 +37,7 @@
* The serialized form is designed to mimic that of the return value of the New Session command, but
* an additional {@code uri} field must also be present.
*/
public class Session {
public class Session implements Serializable {

private final SessionId id;
private final URI uri;
Expand Down

0 comments on commit c0abe97

Please sign in to comment.