fixup query
This commit is contained in:
@@ -13,10 +13,6 @@ public record JsonNumber(double value) implements JsonValue, JsonToken {
|
||||
public static final @NotNull JsonNumber ZERO = new JsonNumber(0);
|
||||
public static final @NotNull JsonNumber ONE = new JsonNumber(1);
|
||||
|
||||
public JsonNumber {
|
||||
if (!Double.isFinite(value)) throw new IllegalArgumentException("value must be finite");
|
||||
}
|
||||
|
||||
/**
|
||||
* Converts the given int to a JSON number.
|
||||
* @param i an int
|
||||
|
Reference in New Issue
Block a user