Skip to content

Commit c0abe97

Browse files
committed
[grid] Make NodeId, Session and Session id serializable
1 parent f811064 commit c0abe97

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

java/client/src/org/openqa/selenium/remote/SessionId.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,11 @@
2020
import org.openqa.selenium.internal.Require;
2121
import org.openqa.selenium.json.JsonException;
2222

23+
import java.io.Serializable;
2324
import java.util.Map;
2425
import java.util.UUID;
2526

26-
public class SessionId {
27+
public class SessionId implements Serializable {
2728

2829
private final String opaqueKey;
2930

java/server/src/org/openqa/selenium/grid/data/NodeId.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,12 @@
1919

2020
import org.openqa.selenium.internal.Require;
2121

22+
import java.io.Serializable;
2223
import java.util.Comparator;
2324
import java.util.Objects;
2425
import java.util.UUID;
2526

26-
public class NodeId implements Comparable<NodeId> {
27+
public class NodeId implements Comparable<NodeId>, Serializable {
2728

2829
private final UUID uuid;
2930

java/server/src/org/openqa/selenium/grid/data/Session.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
import org.openqa.selenium.json.JsonInput;
2424
import org.openqa.selenium.remote.SessionId;
2525

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

4142
private final SessionId id;
4243
private final URI uri;

0 commit comments

Comments
 (0)