commit | a2c0ae3295922030181738470ac5bfda643a3ed5 | [log] [tgz] |
---|---|---|
author | Eric Anderson <ejona@google.com> | Mon Jun 06 08:08:30 2022 -0700 |
committer | Eric Anderson <ejona@google.com> | Mon Jun 06 11:08:51 2022 -0700 |
tree | e733fd3fc0437e77280715acf62e62c4e5b18dfe | |
parent | 9a09021897fed86df86a47e941b75778bcb0d4fa [diff] |
api: Document Attributes.Key uses reference equality The text here should be expanded once `keys()` is removed. But for now this at least can make it clearer that the current behavior is on purpose. The text here is the same as that in CallOptions.Key. See https://github.com/grpc/grpc-java/issues/1764#issuecomment-1144935608
diff --git a/api/src/main/java/io/grpc/Attributes.java b/api/src/main/java/io/grpc/Attributes.java index 26c2a72..461ed04 100644 --- a/api/src/main/java/io/grpc/Attributes.java +++ b/api/src/main/java/io/grpc/Attributes.java
@@ -110,7 +110,8 @@ } /** - * Key for an key-value pair. + * Key for an key-value pair. Uses reference equality. + * * @param <T> type of the value in the key-value pair */ @Immutable