File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
dd-java-agent/agent-otel/otel-shim/src/main/java/datadog/opentelemetry/shim/baggage Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 77import io .opentelemetry .api .baggage .BaggageEntry ;
88import io .opentelemetry .api .baggage .BaggageEntryMetadata ;
99import java .util .Map ;
10+ import java .util .Objects ;
1011import java .util .function .BiConsumer ;
1112import javax .annotation .Nullable ;
1213import javax .annotation .ParametersAreNonnullByDefault ;
@@ -85,12 +86,12 @@ public BaggageEntryMetadata getMetadata() {
8586
8687 @ Override
8788 public int hashCode () {
88- return value .hashCode ();
89+ return Objects .hashCode (value );
8990 }
9091
9192 @ Override
9293 public final boolean equals (Object o ) {
93- return (o instanceof ValueOnly ) && value .equals (((ValueOnly ) o ).value );
94+ return (o instanceof ValueOnly ) && Objects .equals (value , ((ValueOnly ) o ).value );
9495 }
9596 }
9697}
You can’t perform that action at this time.
0 commit comments