Skip to content

Commit a8addc6

Browse files
committed
fix errorprone issues
1 parent 9914851 commit a8addc6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

opencensus-shim/src/main/java/io/opentelemetry/opencensusshim/OpenTelemetrySpanBuilderImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,12 +129,12 @@ public Span startSpan() {
129129
Boolean hasRemoteParent = null;
130130
if (ocRemoteParentSpanContext != null && ocRemoteParentSpanContext.isValid()) {
131131
ocParentContext = ocRemoteParentSpanContext;
132-
hasRemoteParent = Boolean.TRUE;
132+
hasRemoteParent = true;
133133
ocTraceId = ocParentContext.getTraceId();
134134
ocTracestate = ocParentContext.getTracestate();
135135
} else if (ocParent != null && ocParent.getContext().isValid()) {
136136
ocParentContext = ocParent.getContext();
137-
hasRemoteParent = Boolean.FALSE;
137+
hasRemoteParent = false;
138138
ocTraceId = ocParentContext.getTraceId();
139139
ocTracestate = ocParentContext.getTracestate();
140140
} else {

0 commit comments

Comments
 (0)