From 5780ef73b333ca7fad60d2f025e84dd9fb4160a4 Mon Sep 17 00:00:00 2001 From: "marcin.bobinski" Date: Thu, 9 Jan 2025 15:45:51 +0100 Subject: [PATCH] SKYEDEN-3020 | changes related to CR - added toString for PartitionOffset class --- .../hermes/common/kafka/offset/PartitionOffset.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/hermes-common/src/main/java/pl/allegro/tech/hermes/common/kafka/offset/PartitionOffset.java b/hermes-common/src/main/java/pl/allegro/tech/hermes/common/kafka/offset/PartitionOffset.java index 459770e508..10aa1f3caf 100644 --- a/hermes-common/src/main/java/pl/allegro/tech/hermes/common/kafka/offset/PartitionOffset.java +++ b/hermes-common/src/main/java/pl/allegro/tech/hermes/common/kafka/offset/PartitionOffset.java @@ -52,4 +52,16 @@ public boolean equals(Object obj) { public int hashCode() { return Objects.hash(topic, partition, offset); } + + @Override + public String toString() { + return "PartitionOffset{" + + "topic=" + + topic + + ", partition=" + + partition + + ", offset=" + + offset + + '}'; + } }