Skip to content

Conversation

@nielsbauman
Copy link
Contributor

Replaces the deprecated method with appropriate substitute.

Replaces the deprecated method with appropriate substitute.
@nielsbauman nielsbauman requested a review from ywangd July 8, 2025 22:09
@nielsbauman nielsbauman added >non-issue :Core/Infra/Core Core issues without another label labels Jul 8, 2025
@elasticsearchmachine elasticsearchmachine added Team:Core/Infra Meta label for core/infra team v9.2.0 labels Jul 8, 2025
@elasticsearchmachine
Copy link
Collaborator

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));
Copy link
Contributor Author

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.

Copy link
Member

@ywangd ywangd left a 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.

@nielsbauman nielsbauman enabled auto-merge (squash) July 14, 2025 18:04
@nielsbauman nielsbauman disabled auto-merge July 14, 2025 21:19
@nielsbauman nielsbauman merged commit be4f845 into elastic:main Jul 14, 2025
31 of 32 checks passed
@nielsbauman nielsbauman deleted the remove-metadata-put-custom branch July 14, 2025 21:19
jdconrad pushed a commit to JVerwolf/elasticsearch that referenced this pull request Jul 14, 2025
Replaces the deprecated method with appropriate substitute.
mridula-s109 pushed a commit to mridula-s109/elasticsearch that referenced this pull request Jul 17, 2025
Replaces the deprecated method with appropriate substitute.
mridula-s109 pushed a commit to mridula-s109/elasticsearch that referenced this pull request Jul 17, 2025
Replaces the deprecated method with appropriate substitute.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Core/Infra/Core Core issues without another label >non-issue Team:Core/Infra Meta label for core/infra team v9.2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants