Skip to content

Commit 1477f3a

Browse files
committed
[java] deprecated the status field
1 parent 639737a commit 1477f3a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

java/src/org/openqa/selenium/remote/Response.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ public class Response {
2525

2626
private volatile Object value;
2727
private volatile String sessionId;
28+
@Deprecated//(forRemoval = true)
2829
private volatile Integer status;
2930
private volatile String state;
3031

@@ -34,10 +35,12 @@ public Response(SessionId sessionId) {
3435
this.sessionId = String.valueOf(sessionId);
3536
}
3637

38+
@Deprecated//(forRemoval = true)
3739
public Integer getStatus() {
3840
return status;
3941
}
4042

43+
@Deprecated//(forRemoval = true)
4144
public void setStatus(Integer status) {
4245
this.status = status;
4346
}
@@ -69,8 +72,8 @@ public String getSessionId() {
6972
@Override
7073
public String toString() {
7174
return String.format(
72-
"(Response: SessionID: %s, Status: %s, Value: %s)",
73-
getSessionId(), getStatus(), getValue());
75+
"(Response: SessionID: %s, State: %s, Value: %s)",
76+
getSessionId(), getState(), getValue());
7477
}
7578

7679
@Override

0 commit comments

Comments
 (0)