File tree 1 file changed +12
-1
lines changed
src/test/java/com/fasterxml/jackson/dataformat/xml/failing
1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 2
2
3
3
import java .util .Arrays ;
4
4
import java .util .List ;
5
+ import java .util .Objects ;
5
6
6
7
import com .fasterxml .jackson .annotation .JsonInclude .Include ;
7
8
import com .fasterxml .jackson .dataformat .xml .XmlMapper ;
@@ -39,7 +40,17 @@ public boolean equals(final Object other) {
39
40
}
40
41
41
42
final Issue86 otherIssue86 = (Issue86 ) other ;
42
- return otherIssue86 .id .equals (id ) && otherIssue86 .children .equals (children );
43
+ return Objects .equals (id , otherIssue86 .id )
44
+ && Objects .deepEquals (children , otherIssue86 .children );
45
+ }
46
+
47
+ @ Override
48
+ public String toString () {
49
+ StringBuilder sb = new StringBuilder ();
50
+ sb .append ("{id='" ).append (id )
51
+ .append ("', children=" ).append (children )
52
+ .append ('}' );
53
+ return sb .toString ();
43
54
}
44
55
}
45
56
You can’t perform that action at this time.
0 commit comments