aboutsummaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
authorKristen Kozak <sebright@google.com>2017-11-10 12:30:23 -0800
committerKristen Kozak <sebright@google.com>2017-11-10 12:31:27 -0800
commit7102022573c6e1c0e215ad1fccf8b1ec1d36818a (patch)
tree0f6d4cb89a65bd944d295b6ab4ac485d9c8d6d2f /api
parent6cbf3adbc630774b341cd7958ceed8140696e71f (diff)
downloadplatform_external_opencensus-java-7102022573c6e1c0e215ad1fccf8b1ec1d36818a.tar.gz
platform_external_opencensus-java-7102022573c6e1c0e215ad1fccf8b1ec1d36818a.tar.bz2
platform_external_opencensus-java-7102022573c6e1c0e215ad1fccf8b1ec1d36818a.zip
Avoid guaranteeing that the result of Tags.getState() won't change.
Diffstat (limited to 'api')
-rw-r--r--api/src/main/java/io/opencensus/tags/Tags.java2
-rw-r--r--api/src/main/java/io/opencensus/tags/TagsComponent.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/api/src/main/java/io/opencensus/tags/Tags.java b/api/src/main/java/io/opencensus/tags/Tags.java
index 8772e8ec..593312ae 100644
--- a/api/src/main/java/io/opencensus/tags/Tags.java
+++ b/api/src/main/java/io/opencensus/tags/Tags.java
@@ -74,7 +74,7 @@ public final class Tags {
* @deprecated This method is deprecated because other libraries could cache the result of {@link
* #getState()}, use a stale value, and behave incorrectly. It is only safe to call early in
* initialization. This method throws {@link IllegalStateException} after {@link #getState()}
- * has been called, in order to prevent the result of {@code getState()} from changing.
+ * has been called, in order to limit changes to the result of {@code getState()}.
*/
@Deprecated
public static void setState(TaggingState state) {
diff --git a/api/src/main/java/io/opencensus/tags/TagsComponent.java b/api/src/main/java/io/opencensus/tags/TagsComponent.java
index 076fe48d..b0965077 100644
--- a/api/src/main/java/io/opencensus/tags/TagsComponent.java
+++ b/api/src/main/java/io/opencensus/tags/TagsComponent.java
@@ -54,7 +54,7 @@ public abstract class TagsComponent {
* @deprecated This method is deprecated because other libraries could cache the result of {@link
* #getState()}, use a stale value, and behave incorrectly. It is only safe to call early in
* initialization. This method throws {@link IllegalStateException} after {@code getState()}
- * has been called, in order to prevent the result of {@code getState()} from changing.
+ * has been called, in order to limit changes to the result of {@code getState()}.
*/
@Deprecated
public abstract void setState(TaggingState state);