api: Remove ExperimentalApi from Attributes.Builder.discard (#11004)

Now tracked together with Attributes:
https://github.com/grpc/grpc-java/issues/1764.

Closes #5777.
This commit is contained in:
Sergii Tkachenko 2024-03-11 16:15:03 -07:00 committed by GitHub
parent 0d749c5943
commit b3475a0e46
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 2 deletions

View File

@ -236,13 +236,12 @@ public final class Attributes {
}
/**
* Removes the key and associated value from the attribtues.
* Removes the key and associated value from the attributes.
*
* @since 1.22.0
* @param key The key to remove
* @return this
*/
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/5777")
public <T> Builder discard(Key<T> key) {
if (base.data.containsKey(key)) {
IdentityHashMap<Key<?>, Object> newBaseData = new IdentityHashMap<>(base.data);