From d0c35e9f959e30753179679d97061d0ecf7feb7e Mon Sep 17 00:00:00 2001 From: Jin Seop Kim Date: Thu, 5 Dec 2024 14:55:04 -0500 Subject: [PATCH] remove redundant null-checker (and avoid ImpossibleNullComparison) --- .../spring/autoconfigure/trace/pubsub/TraceHelperTests.java | 1 - 1 file changed, 1 deletion(-) diff --git a/spring-cloud-gcp-autoconfigure/src/test/java/com/google/cloud/spring/autoconfigure/trace/pubsub/TraceHelperTests.java b/spring-cloud-gcp-autoconfigure/src/test/java/com/google/cloud/spring/autoconfigure/trace/pubsub/TraceHelperTests.java index 648d449d49..44794b52b2 100644 --- a/spring-cloud-gcp-autoconfigure/src/test/java/com/google/cloud/spring/autoconfigure/trace/pubsub/TraceHelperTests.java +++ b/spring-cloud-gcp-autoconfigure/src/test/java/com/google/cloud/spring/autoconfigure/trace/pubsub/TraceHelperTests.java @@ -66,7 +66,6 @@ void should_inject_child_context() { assertThat(producerSpan.kind()).isEqualTo(PRODUCER); assertChildOf(producerSpan, parent); assertThat(instrumentedMessage.getAttributesMap()) - .isNotNull() .containsEntry("b3", producerSpan.traceId() + "-" + producerSpan.id() + "-1"); }