From 758d16d57f3d451fda8daa0c4bf0f4ee1d3464be Mon Sep 17 00:00:00 2001 From: Nik Everett Date: Fri, 29 Dec 2017 14:43:15 -0500 Subject: [PATCH] SQL: Drop equals and hashCode from FunctionDefinition (elastic/x-pack-elasticsearch#3444) They aren't used and they don't look right. Original commit: elastic/x-pack-elasticsearch@4d07f66f0f6485f3ed59cc20be1818924e149c91 --- .../function/FunctionDefinition.java | 21 ------------------- 1 file changed, 21 deletions(-) diff --git a/sql/server/src/main/java/org/elasticsearch/xpack/sql/expression/function/FunctionDefinition.java b/sql/server/src/main/java/org/elasticsearch/xpack/sql/expression/function/FunctionDefinition.java index ea232265151..feea76f46a5 100644 --- a/sql/server/src/main/java/org/elasticsearch/xpack/sql/expression/function/FunctionDefinition.java +++ b/sql/server/src/main/java/org/elasticsearch/xpack/sql/expression/function/FunctionDefinition.java @@ -50,27 +50,6 @@ public class FunctionDefinition { return builder; } - @Override - public int hashCode() { - return Objects.hash(clazz); - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } - - if (obj == null || getClass() != obj.getClass()) { - return false; - } - - FunctionDefinition other = (FunctionDefinition) obj; - return Objects.equals(clazz, other.clazz) && - Objects.equals(name, other.name) && - Objects.equals(aliases, aliases); - } - @Override public String toString() { return format(Locale.ROOT, "%s(%s)", name, aliases.isEmpty() ? "" : aliases.size() == 1 ? aliases.get(0) : aliases );