Skip to content
This repository was archived by the owner on Dec 23, 2023. It is now read-only.

Commit f030797

Browse files
authored
Tags: Make the new API non-abstract to avoid breaking other subclasses. (#1811)
1 parent 68d3e2b commit f030797

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

api/src/main/java/io/opencensus/tags/TagContextBuilder.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
* @since 0.8
2525
*/
2626
public abstract class TagContextBuilder {
27-
2827
/**
2928
* Adds the key/value pair regardless of whether the key is present.
3029
*
@@ -51,7 +50,11 @@ public abstract class TagContextBuilder {
5150
* @return this
5251
* @since 0.20
5352
*/
54-
public abstract TagContextBuilder put(TagKey key, TagValue value, TagMetadata tagMetadata);
53+
public TagContextBuilder put(TagKey key, TagValue value, TagMetadata tagMetadata) {
54+
@SuppressWarnings("deprecation")
55+
TagContextBuilder builder = put(key, value);
56+
return builder;
57+
}
5558

5659
/**
5760
* Removes the key if it exists.

0 commit comments

Comments
 (0)