Skip to content

Commit

Permalink
Revert avro topic equality for performance reasons
Browse files Browse the repository at this point in the history
  • Loading branch information
blootsvoets committed Oct 1, 2018
1 parent c980c51 commit 94e6fb0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions radar-commons/src/main/java/org/radarcns/topic/AvroTopic.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

0 comments on commit 94e6fb0

Please sign in to comment.