diff --git a/tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/cdi/DoubleCounterTest.java b/tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/cdi/DoubleCounterTest.java index 425986cb..0c731a4d 100644 --- a/tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/cdi/DoubleCounterTest.java +++ b/tck/metrics/src/main/java/org/eclipse/microprofile/telemetry/metrics/tck/cdi/DoubleCounterTest.java @@ -39,6 +39,7 @@ import org.testng.annotations.BeforeMethod; import org.testng.annotations.Test; +import io.opentelemetry.api.common.AttributeKey; import io.opentelemetry.api.common.Attributes; import io.opentelemetry.api.metrics.DoubleCounter; import io.opentelemetry.api.metrics.Meter; @@ -119,9 +120,9 @@ void testDoubleCounter() throws InterruptedException { }); } - private String mapToString(Map map) { + private String mapToString(Map, ?> map) { return (String) map.keySet().stream() - .map(key -> "" + key + "=" + map.get(key)) + .map(key -> "" + key.getKey() + "=" + map.get(key)) .collect(Collectors.joining(", ", "{", "}")); } }