Removed jetbrains annotations
This commit is contained in:
@@ -24,7 +24,6 @@ import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import org.assertj.core.api.BDDAssertions;
|
||||
import org.awaitility.Awaitility;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.junit.jupiter.api.AfterEach;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
@@ -82,7 +81,6 @@ public abstract class HttpServerParserTests {
|
||||
.containsEntry("ServerResponseServlet", "200"));
|
||||
}
|
||||
|
||||
@NotNull
|
||||
protected Map<String, String> serverSideTags() {
|
||||
return spans.reportedSpans().stream().filter(f -> f.getKind().equals(Span.Kind.SERVER))
|
||||
.flatMap(f -> f.getTags().entrySet().stream())
|
||||
|
||||
@@ -28,7 +28,6 @@ import io.opentelemetry.sdk.trace.ReadableSpan;
|
||||
import io.opentelemetry.sdk.trace.SpanProcessor;
|
||||
import io.opentelemetry.sdk.trace.data.SpanData;
|
||||
import io.opentelemetry.sdk.trace.export.SpanExporter;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import org.springframework.cloud.sleuth.api.Span;
|
||||
import org.springframework.cloud.sleuth.api.exporter.FinishedSpan;
|
||||
@@ -77,7 +76,6 @@ public class OtelTestSpanHandler implements TestSpanHandler, SpanProcessor, Span
|
||||
return reportedSpans().get(index);
|
||||
}
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
public Iterator<FinishedSpan> iterator() {
|
||||
return reportedSpans().iterator();
|
||||
|
||||
@@ -26,7 +26,6 @@ import io.opentelemetry.extension.trace.propagation.B3Propagator;
|
||||
import io.opentelemetry.sdk.trace.TracerSdkProvider;
|
||||
import io.opentelemetry.sdk.trace.config.TraceConfig;
|
||||
import io.opentelemetry.sdk.trace.samplers.Sampler;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import org.springframework.cloud.sleuth.api.CurrentTraceContext;
|
||||
import org.springframework.cloud.sleuth.api.SamplerFunction;
|
||||
@@ -77,7 +76,6 @@ public class OtelTestTracing implements TracerAware, TestTracingAware, TestTraci
|
||||
return provider.get("org.springframework.cloud.sleuth");
|
||||
}
|
||||
|
||||
@NotNull
|
||||
protected ContextPropagators contextPropagators() {
|
||||
return DefaultContextPropagators.builder()
|
||||
.addTextMapPropagator(B3Propagator.builder().injectMultipleHeaders().build()).build();
|
||||
|
||||
Reference in New Issue
Block a user