From e24d19b36ab8f1e7459afc928ac5fb3594d68ce0 Mon Sep 17 00:00:00 2001 From: Sebastian Toepfer <61313468+sebastian-toepfer@users.noreply.github.com> Date: Mon, 9 Oct 2023 22:22:00 +0200 Subject: [PATCH] suppress errorprone false positives --- .../io/github/sebastiantoepfer/jsonschema/InstanceType.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/src/main/java/io/github/sebastiantoepfer/jsonschema/InstanceType.java b/api/src/main/java/io/github/sebastiantoepfer/jsonschema/InstanceType.java index 1d536faf..aa7f4608 100644 --- a/api/src/main/java/io/github/sebastiantoepfer/jsonschema/InstanceType.java +++ b/api/src/main/java/io/github/sebastiantoepfer/jsonschema/InstanceType.java @@ -50,6 +50,7 @@ public boolean isInstance(final JsonValue value) { return result; } + @SuppressWarnings("BigDecimalEquals") private boolean isIntegral(final BigDecimal decimal) { return ( BigDecimal.ZERO.equals(decimal) || @@ -61,6 +62,7 @@ private boolean isIntegral(final BigDecimal decimal) { }, STRING(JsonValue.ValueType.STRING); + @SuppressWarnings("ImmutableEnumChecker") private final Collection validTypes; InstanceType(final JsonValue.ValueType... validTypes) {