Skip to content

Commit 14e5ff8

Browse files
authored
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()).
1 parent bddc773 commit 14e5ff8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/fasterxml/jackson/module/jsonSchema/JsonSchema.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ public boolean equals(Object obj)
518518

519519
protected boolean _equals(JsonSchema that)
520520
{
521-
return equals(getId(), getId())
521+
return equals(getId(), that.getId())
522522
// 27-Apr-2015, tatu: Should not need to check type explicitly
523523
// && equals(getType(), getType())
524524
&& equals(getRequired(), that.getRequired())

0 commit comments

Comments
 (0)