-
Notifications
You must be signed in to change notification settings - Fork 25.7k
Remove deprecated Metadata.Builder#putProjectCustom
#130862
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
Remove deprecated Metadata.Builder#putProjectCustom
#130862
Conversation
Replaces the deprecated method with appropriate substitute.
|
Pinging @elastic/es-core-infra (Team:Core/Infra) |
| expectThrows(NullPointerException.class, () -> builder.putCustom(key, (Metadata.ClusterCustom) null)).getMessage(), | ||
| containsString(key) | ||
| ); | ||
| assertThat(expectThrows(NullPointerException.class, () -> builder.putProjectCustom(key, null)).getMessage(), containsString(key)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This assertion is moved to ProjectMetadataTests in #130846, so I'm just removing it here as well to pass compilation.
ywangd
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
One comment that I'd appreciate to be addressed.
server/src/main/java/org/elasticsearch/cluster/metadata/Metadata.java
Outdated
Show resolved
Hide resolved
Replaces the deprecated method with appropriate substitute.
Replaces the deprecated method with appropriate substitute.
Replaces the deprecated method with appropriate substitute.
Replaces the deprecated method with appropriate substitute.