Skip to content

Commit

Permalink
hushes errorprone
Browse files Browse the repository at this point in the history
  • Loading branch information
thgoexpt committed Aug 22, 2018
1 parent 8be75ab commit 90bd6a2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ static final class Builder extends CurrentTraceContext.Builder{

static final ThreadLocal<TraceContext> DEFAULT = new ThreadLocal<>();

@SuppressWarnings("ThreadLocalUsage") // intentional: to support multiple Tracer instances
final ThreadLocal<TraceContext> local;

ThreadLocalCurrentTraceContext(
Expand Down
1 change: 1 addition & 0 deletions brave/src/main/java/brave/propagation/ThreadLocalSpan.java
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ public static ThreadLocalSpan create(Tracer tracer) {
* This keeps track of a stack with a normal array dequeue. Redundant stacking of the same span is
* not possible because there is no api to place an arbitrary span in scope using this api.
*/
@SuppressWarnings("ThreadLocalUsage") // intentional: to support multiple Tracer instances
final ThreadLocal<Deque<SpanAndScope>> currentSpanInScope =
new ThreadLocal<Deque<SpanAndScope>>() {
@Override protected Deque<SpanAndScope> initialValue() {
Expand Down

0 comments on commit 90bd6a2

Please sign in to comment.