Skip to content

Commit

Permalink
api: Remove ExperimentalApi from Attributes.Builder.discard (#11004)
Browse files Browse the repository at this point in the history
Now tracked together with Attributes:
#1764.

Closes #5777.
  • Loading branch information
sergiitk committed Mar 11, 2024
1 parent 0d749c5 commit b3475a0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions api/src/main/java/io/grpc/Attributes.java
Original file line number Diff line number Diff line change
Expand Up @@ -236,13 +236,12 @@ public <T> Builder set(Key<T> key, T value) {
}

/**
* 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);
Expand Down

0 comments on commit b3475a0

Please sign in to comment.