From 76bc3a4c4c4f6c7026137a48f937d9ea9487ce5f Mon Sep 17 00:00:00 2001 From: Paolo Patierno Date: Sun, 15 Oct 2023 10:03:44 +0200 Subject: [PATCH] Removed unused methods and made members final Signed-off-by: Paolo Patierno --- .../kafka/bridge/SinkTopicSubscription.java | 22 ++----------------- 1 file changed, 2 insertions(+), 20 deletions(-) diff --git a/src/main/java/io/strimzi/kafka/bridge/SinkTopicSubscription.java b/src/main/java/io/strimzi/kafka/bridge/SinkTopicSubscription.java index 2323e74b3..ba383e4ee 100644 --- a/src/main/java/io/strimzi/kafka/bridge/SinkTopicSubscription.java +++ b/src/main/java/io/strimzi/kafka/bridge/SinkTopicSubscription.java @@ -11,8 +11,8 @@ */ public class SinkTopicSubscription { - private String topic; - private Integer partition; + private final String topic; + private final Integer partition; /** * Constructor @@ -41,15 +41,6 @@ public String getTopic() { return topic; } - /** - * Set the topic to subscribe/assign - * - * @param topic topic to subscribe/assign - */ - public void setTopic(String topic) { - this.topic = topic; - } - /** * @return partition requested as assignment (null if no specific assignment) */ @@ -57,15 +48,6 @@ public Integer getPartition() { return partition; } - /** - * Set the partition requested as assignment (null if no specific assignment) - * - * @param partition partition requested as assignment (null if no specific assignment) - */ - public void setPartition(Integer partition) { - this.partition = partition; - } - @Override public String toString() { return "SinkTopicSubscription(" +