Skip to content

Commit e93773a

Browse files
committed
change type of state to enum in ServerStatus.java
Signed-off-by: Leo Ma <[email protected]>
1 parent 1ecd6fe commit e93773a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/com/cisco/trex/stateful/model/ServerStatus.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public enum State {
2929
private int epoch;
3030

3131
@JsonProperty("state")
32-
private int state;
32+
private State state;
3333

3434
@JsonProperty("state_profile")
3535
private Map<String, State> stateProfile;
@@ -45,12 +45,12 @@ public void setEpoch(int epoch) {
4545
}
4646

4747
@JsonProperty("state")
48-
public int getState() {
48+
public State getState() {
4949
return state;
5050
}
5151

5252
@JsonProperty("state")
53-
public void setState(int state) {
53+
public void setState(State state) {
5454
this.state = state;
5555
}
5656

0 commit comments

Comments
 (0)