Skip to content

Commit

Permalink
[java] deprecated the status field
Browse files Browse the repository at this point in the history
  • Loading branch information
joerg1985 committed Aug 10, 2023
1 parent 639737a commit 1477f3a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions java/src/org/openqa/selenium/remote/Response.java
Expand Up @@ -25,6 +25,7 @@ public class Response {

private volatile Object value;
private volatile String sessionId;
@Deprecated//(forRemoval = true)
private volatile Integer status;
private volatile String state;

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

@Deprecated//(forRemoval = true)
public Integer getStatus() {
return status;
}

@Deprecated//(forRemoval = true)
public void setStatus(Integer status) {
this.status = status;
}
Expand Down Expand Up @@ -69,8 +72,8 @@ public String getSessionId() {
@Override
public String toString() {
return String.format(
"(Response: SessionID: %s, Status: %s, Value: %s)",
getSessionId(), getStatus(), getValue());
"(Response: SessionID: %s, State: %s, Value: %s)",
getSessionId(), getState(), getValue());
}

@Override
Expand Down

0 comments on commit 1477f3a

Please sign in to comment.