Skip to content

Commit

Permalink
Redefined json mapping for CircualRange.
Browse files Browse the repository at this point in the history
  • Loading branch information
essiembre committed Feb 19, 2024
1 parent 9f0f0d7 commit c125e35
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/com/norconex/commons/lang/CircularRange.java
Original file line number Diff line number Diff line change
Expand Up @@ -207,9 +207,9 @@ public static <T> CircularRange<T> between(
*/
@JsonCreator
public static <T extends Comparable<T>> CircularRange<T> between(
@JsonProperty("circleStart")
@JsonProperty("start")
final T circleStartInclusive,
@JsonProperty("circleEnd")
@JsonProperty("end")
final T circleEndInclusive,
@JsonProperty("minimum")
final T rangeFromInclusive,
Expand Down Expand Up @@ -313,15 +313,15 @@ public T getMaximum() {
* <p>Gets the start value of this circular range.</p>
* @return the start value of this circular range, not null
*/
@JsonProperty("circleStart")
@JsonProperty("start")
public T getCircleStart() {
return circleStart;
}
/**
* <p>Gets the end value of this circular range.</p>
* @return the end value of this circular range, not null
*/
@JsonProperty("circleEnd")
@JsonProperty("end")
public T getCircleEnd() {
return circleEnd;
}
Expand Down

0 comments on commit c125e35

Please sign in to comment.