Skip to content

Commit 0c88fb9

Browse files
committed
Gardening: Use subclass name in ClusterTopology.toString()
Include "ClusterTopology" or "ClusterTopologyWithBucket" depending on the instance type. This makes it easer to tell at a glance whether the topology came from a bucket. Change-Id: I6000f466eb52c903d32a7128a7136c9c4e83fdd5 Reviewed-on: https://review.couchbase.org/c/couchbase-jvm-clients/+/229143 Tested-by: Build Bot <[email protected]> Reviewed-by: Michael Reiche <[email protected]>
1 parent 907ca15 commit 0c88fb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core-io/src/main/java/com/couchbase/client/core/topology/ClusterTopology.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ public ClusterTopologyWithBucket requireBucket() {
128128
public String toString() {
129129
String bucket = this instanceof ClusterTopologyWithBucket ? this.requireBucket().bucket().toString() : "<N/A>";
130130

131-
return "ClusterTopology{" +
131+
return getClass().getSimpleName() + "{" +
132132
"revision=" + revision +
133133
", clusterIdent=" + clusterIdent +
134134
", tls=" + tls +

0 commit comments

Comments
 (0)