From 94e6fb07ae0094a4c0b2a5b8e257e3c0d3f0fbe1 Mon Sep 17 00:00:00 2001 From: Joris Borgdorff Date: Mon, 1 Oct 2018 15:45:51 +0200 Subject: [PATCH] Revert avro topic equality for performance reasons --- .../src/main/java/org/radarcns/topic/AvroTopic.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/radar-commons/src/main/java/org/radarcns/topic/AvroTopic.java b/radar-commons/src/main/java/org/radarcns/topic/AvroTopic.java index 6bf049db..54933ff0 100644 --- a/radar-commons/src/main/java/org/radarcns/topic/AvroTopic.java +++ b/radar-commons/src/main/java/org/radarcns/topic/AvroTopic.java @@ -147,12 +147,11 @@ public boolean equals(Object o) { AvroTopic topic = (AvroTopic) o; - return keyClass == topic.getKeyClass() && valueClass == topic.getValueClass() - && keySchema.equals(topic.getKeySchema()) && valueSchema.equals(topic.getValueSchema()); + return keyClass == topic.getKeyClass() && valueClass == topic.getValueClass(); } @Override public int hashCode() { - return Objects.hash(getName(), keyClass, valueClass, keySchema, valueSchema); + return Objects.hash(getName(), keyClass, valueClass); } }