mirror of https://github.com/grpc/grpc-java.git
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:
parent
0d749c5943
commit
b3475a0e46
|
|
@ -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
|
* @since 1.22.0
|
||||||
* @param key The key to remove
|
* @param key The key to remove
|
||||||
* @return this
|
* @return this
|
||||||
*/
|
*/
|
||||||
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/5777")
|
|
||||||
public <T> Builder discard(Key<T> key) {
|
public <T> Builder discard(Key<T> key) {
|
||||||
if (base.data.containsKey(key)) {
|
if (base.data.containsKey(key)) {
|
||||||
IdentityHashMap<Key<?>, Object> newBaseData = new IdentityHashMap<>(base.data);
|
IdentityHashMap<Key<?>, Object> newBaseData = new IdentityHashMap<>(base.data);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue