Skip to content

Commit c61b761

Browse files
committed
Remove unnecessary todo
Array.equals() does the right thing, here. It compares the shape of each array, then object equality of the members. Where it would fail is on a String[][].
1 parent 762db8f commit c61b761

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/main/java/com/networknt/schema/ValidationMessage.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ public boolean equals(Object o) {
7676
if (type != null ? !type.equals(that.type) : that.type != null) return false;
7777
if (code != null ? !code.equals(that.code) : that.code != null) return false;
7878
if (path != null ? !path.equals(that.path) : that.path != null) return false;
79-
// Probably incorrect - comparing Object[] arrays with Arrays.equals
8079
if (!Arrays.equals(arguments, that.arguments)) return false;
8180
return !(message != null ? !message.equals(that.message) : that.message != null);
8281

0 commit comments

Comments
 (0)