TraceTree: implement toString
@@ -5,6 +5,7 @@ import static com.google.common.base.Preconditions.checkNotNull;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
+import com.google.common.base.MoreObjects;
import com.google.common.collect.ImmutableList;
import java.util.List;
import java.util.Objects;
@@ -63,4 +64,13 @@ public final class TraceTree {
public int hashCode() {
return Objects.hash(_traceElement, _children);
}
+
+ @Override
+ public String toString() {
+ return MoreObjects.toStringHelper(this)
+ .omitNullValues()
+ .add("traceElement", _traceElement)
+ .add("children", _children)
+ .toString();
+ }
}
