From c16c44a43050297a461f3106b5ccacb218cbbef7 Mon Sep 17 00:00:00 2001 From: Gagan Juneja Date: Thu, 6 Jun 2024 09:32:05 +0530 Subject: [PATCH] Adds build issue Signed-off-by: Gagan Juneja --- .../telemetry/metrics/DefaultMetricsRegistryTests.java | 1 + .../opensearch/telemetry/metrics/OTelMetricsTelemetryTests.java | 1 + 2 files changed, 2 insertions(+) diff --git a/libs/telemetry/src/test/java/org/opensearch/telemetry/metrics/DefaultMetricsRegistryTests.java b/libs/telemetry/src/test/java/org/opensearch/telemetry/metrics/DefaultMetricsRegistryTests.java index 0873c7c502148..e1506eecff6e9 100644 --- a/libs/telemetry/src/test/java/org/opensearch/telemetry/metrics/DefaultMetricsRegistryTests.java +++ b/libs/telemetry/src/test/java/org/opensearch/telemetry/metrics/DefaultMetricsRegistryTests.java @@ -79,6 +79,7 @@ public void testGauge() { assertSame(mockCloseable, closeable); } + @SuppressWarnings("unchecked") public void testGaugeWithValueAndTagSupplier() { Closeable mockCloseable = mock(Closeable.class); when(defaultMeterRegistry.createGauge(any(String.class), any(String.class), any(String.class), any(Supplier.class))).thenReturn( diff --git a/plugins/telemetry-otel/src/test/java/org/opensearch/telemetry/metrics/OTelMetricsTelemetryTests.java b/plugins/telemetry-otel/src/test/java/org/opensearch/telemetry/metrics/OTelMetricsTelemetryTests.java index 16f647518828c..794cafc1fb608 100644 --- a/plugins/telemetry-otel/src/test/java/org/opensearch/telemetry/metrics/OTelMetricsTelemetryTests.java +++ b/plugins/telemetry-otel/src/test/java/org/opensearch/telemetry/metrics/OTelMetricsTelemetryTests.java @@ -181,6 +181,7 @@ public void testGauge() throws Exception { verify(observableDoubleGauge).close(); } + @SuppressWarnings({ "rawtypes", "unchecked" }) public void testGaugeWithValueAndTagsSupplier() throws Exception { String observableGaugeName = "test-gauge"; String description = "test";