diff options
author | zpencer <spencerfang@google.com> | 2018-05-14 11:30:06 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-14 11:30:06 -0700 |
commit | 21b73bbdc1e7f871573eaedc741ffca3a63a3ac5 (patch) | |
tree | ae58718d9b9f8b6a214be5fd558a2b524c95660a /alts | |
parent | 277c33c37f260a91663c38d83f53b02504e0ac53 (diff) | |
download | grpc-grpc-java-21b73bbdc1e7f871573eaedc741ffca3a63a3ac5.tar.gz |
core: partially stabilize Attributes API (#4458)
Deprecate static builder method, Keys.of(), add a notice of plans to
remove keys(), emphasize that the name is only a debug label.
The `@ExperimentalAPI` is left on the class because there are still
issues around hashCode/equals.
Diffstat (limited to 'alts')
-rw-r--r-- | alts/src/main/java/io/grpc/alts/internal/AltsProtocolNegotiator.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/alts/src/main/java/io/grpc/alts/internal/AltsProtocolNegotiator.java b/alts/src/main/java/io/grpc/alts/internal/AltsProtocolNegotiator.java index 137c356b7..52e96cced 100644 --- a/alts/src/main/java/io/grpc/alts/internal/AltsProtocolNegotiator.java +++ b/alts/src/main/java/io/grpc/alts/internal/AltsProtocolNegotiator.java @@ -39,9 +39,9 @@ import io.netty.util.AsciiString; */ public abstract class AltsProtocolNegotiator implements ProtocolNegotiator { - private static final Attributes.Key<TsiPeer> TSI_PEER_KEY = Attributes.Key.of("TSI_PEER"); + private static final Attributes.Key<TsiPeer> TSI_PEER_KEY = Attributes.Key.create("TSI_PEER"); private static final Attributes.Key<AltsAuthContext> ALTS_CONTEXT_KEY = - Attributes.Key.of("ALTS_CONTEXT_KEY"); + Attributes.Key.create("ALTS_CONTEXT_KEY"); private static final AsciiString scheme = AsciiString.of("https"); public static Attributes.Key<TsiPeer> getTsiPeerAttributeKey() { |