File tree Expand file tree Collapse file tree
src/test/java/com/fasterxml/jackson/dataformat/xml/failing Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33import java .util .Arrays ;
44import java .util .List ;
5+ import java .util .Objects ;
56
67import com .fasterxml .jackson .annotation .JsonInclude .Include ;
78import com .fasterxml .jackson .dataformat .xml .XmlMapper ;
@@ -39,7 +40,17 @@ public boolean equals(final Object other) {
3940 }
4041
4142 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 ();
4354 }
4455 }
4556
You can’t perform that action at this time.
0 commit comments