fixup query

This commit is contained in:
2025-04-13 02:29:38 +02:00
parent ef88d89ce1
commit 87ae709f6d
13 changed files with 416 additions and 160 deletions

View File

@@ -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