Skip to content

World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.

[MINOR] fix(common): Override `toString` method of `topicDTO` (#3955)

mchades210a9f0f4f12
diff --git a/common/src/main/java/com/datastrato/gravitino/dto/messaging/TopicDTO.java b/common/src/main/java/com/datastrato/gravitino/dto/messaging/TopicDTO.java
index 2be3b9920e..1bcd153e42 100644
--- a/common/src/main/java/com/datastrato/gravitino/dto/messaging/TopicDTO.java
+++ b/common/src/main/java/com/datastrato/gravitino/dto/messaging/TopicDTO.java
@@ -90,6 +90,22 @@ public class TopicDTO implements Topic {
return Objects.hash(name, comment, properties, audit);
}
+ @Override
+ public String toString() {
+ return "TopicDTO{"
+ + "name='"
+ + name
+ + '\''
+ + ", comment='"
+ + comment
+ + '\''
+ + ", properties="
+ + properties
+ + ", audit="
+ + audit
+ + '}';
+ }
+
/** A builder for constructing a Topic DTO. */
public static class Builder {
private String name;