Skip to content

Conversation

@jimczi
Copy link
Contributor

@jimczi jimczi commented Feb 20, 2017

Relates #22278

@jimczi jimczi added :Analytics/Aggregations Aggregations :Aliases help wanted adoptme >test Issues or PRs that are addressing/adding tests v6.0.0-alpha1 and removed :Aliases help wanted adoptme labels Feb 20, 2017
Copy link
Contributor

@jpountz jpountz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One comment about the hashcode impl, otherwise LGTM.


@Override
public int hashCode() {
return Objects.hash(keyed, format, docCount, key, from, to, aggregations);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

keyed and format are in the hashcode but not in equals. I think it is fine not to consider them in equals since they only have an impact on formatting, but then hashCode should not use them either?

@jpountz
Copy link
Contributor

jpountz commented Feb 20, 2017

LGTM

@jimczi jimczi merged commit 69b1463 into elastic:master Feb 20, 2017
@jimczi jimczi deleted the ip_range_test branch February 20, 2017 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Analytics/Aggregations Aggregations >test Issues or PRs that are addressing/adding tests v6.0.0-alpha1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants