From 14e5ff88ad92416a0d05b12ec1ca214003ad03cc Mon Sep 17 00:00:00 2001 From: cernautan Date: Sun, 19 Dec 2021 02:28:37 +0200 Subject: [PATCH] Update JsonSchema.java I think the protected boolean _equals(JsonSchema that) contains an issue on the 'id' comparison line. It should be equals(getId(), that.getId()) instead of the current code that is equals(getId(), getId()). --- .../com/fasterxml/jackson/module/jsonSchema/JsonSchema.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/fasterxml/jackson/module/jsonSchema/JsonSchema.java b/src/main/java/com/fasterxml/jackson/module/jsonSchema/JsonSchema.java index 679f9ca7..639d53e1 100644 --- a/src/main/java/com/fasterxml/jackson/module/jsonSchema/JsonSchema.java +++ b/src/main/java/com/fasterxml/jackson/module/jsonSchema/JsonSchema.java @@ -518,7 +518,7 @@ public boolean equals(Object obj) protected boolean _equals(JsonSchema that) { - return equals(getId(), getId()) + return equals(getId(), that.getId()) // 27-Apr-2015, tatu: Should not need to check type explicitly // && equals(getType(), getType()) && equals(getRequired(), that.getRequired())