Skip to content

Commit

Permalink
fix: JSON parse error: number 5: index value outside legal index rang…
Browse files Browse the repository at this point in the history
…e [0..4]]
  • Loading branch information
love98ooo committed Dec 7, 2023
1 parent 530dae3 commit 251a36f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/sast/evento/common/enums/EventState.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package sast.evento.common.enums;

import com.fasterxml.jackson.annotation.JsonValue;
import sast.evento.exception.LocalRunTimeException;

import java.util.Arrays;
Expand All @@ -25,6 +26,7 @@ public static EventState getEventState(Integer state) {
.orElseThrow(() -> new LocalRunTimeException(ErrorEnum.COMMON_ERROR, "Invalid event_state value"));
}

@JsonValue
public Integer getState() {
return state;
}
Expand Down

0 comments on commit 251a36f

Please sign in to comment.