Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add UnknownRole#equals, hashCode, toString #43227

Conversation

DaveCTurner
Copy link
Contributor

Adds methods to DiscoveryNodeRole.UnknownRole to compare these objects'
values for equality, and adds a specialized toString() implementation for
clearer test failures.

Relates #43175

Adds methods to `DiscoveryNodeRole.UnknownRole` to compare these objects'
values for equality, and adds a specialized `toString()` implementation for
clearer test failures.

Relates elastic#43175
@DaveCTurner DaveCTurner added :Core/Infra/Plugins Plugin API and infrastructure v8.0.0 v7.3.0 labels Jun 14, 2019
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra

Copy link
Member

@jasontedor jasontedor left a comment

Choose a reason for hiding this comment

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

I left a question.

"roleName='" + roleName() + '\'' +
", roleAbbreviation='" + roleNameAbbreviation() + '\'' +
'}';
}
Copy link
Member

Choose a reason for hiding this comment

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

I think these can all go in the base class, as final, with adding getClass() to the toString implementation?

@DaveCTurner
Copy link
Contributor Author

Closing in favour of #43257

@DaveCTurner DaveCTurner deleted the 2019-06-14-DiscoveryNodeRole-UnknownRole-as-value-objects branch June 15, 2019 08:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants