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@4d07f66f0f
This commit is contained in:
Nik Everett 2017-12-29 14:43:15 -05:00 committed by GitHub
parent dbf1fc00ce
commit 758d16d57f
1 changed files with 0 additions and 21 deletions

View File

@ -50,27 +50,6 @@ public class FunctionDefinition {
return builder; 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 @Override
public String toString() { public String toString() {
return format(Locale.ROOT, "%s(%s)", name, aliases.isEmpty() ? "" : aliases.size() == 1 ? aliases.get(0) : aliases ); return format(Locale.ROOT, "%s(%s)", name, aliases.isEmpty() ? "" : aliases.size() == 1 ? aliases.get(0) : aliases );