kfaraz commented on code in PR #19138:
URL: https://github.com/apache/druid/pull/19138#discussion_r3592560716
##########
processing/src/main/java/org/apache/druid/timeline/IntervalTreeMap.java:
##########
@@ -826,8 +828,11 @@ private void setRightNode(Node<T> node, Node<T> right)
}
}
- @VisibleForTesting
- public String print()
+ /**
+ * @return The contents of the tree as a string
+ */
+ @Override
+ public @Nullable String toString()
{
return (root != null) ? root.print(1) : null;
Review Comment:
`toString()` should ideally not be null for a non-null object.
Return an empty string instead.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]