From 0d8e36ce24f73b75b33ca4ac51efc92737b397fa Mon Sep 17 00:00:00 2001 From: Sanket Mundra Date: Wed, 28 Aug 2024 16:27:49 +0530 Subject: [PATCH] remove emptylist --- .../config/service/metric/ConfigMetricsReporter.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/config-service-impl/src/main/java/org/hypertrace/config/service/metric/ConfigMetricsReporter.java b/config-service-impl/src/main/java/org/hypertrace/config/service/metric/ConfigMetricsReporter.java index b8ad0207..d4e37522 100644 --- a/config-service-impl/src/main/java/org/hypertrace/config/service/metric/ConfigMetricsReporter.java +++ b/config-service-impl/src/main/java/org/hypertrace/config/service/metric/ConfigMetricsReporter.java @@ -1,9 +1,7 @@ package org.hypertrace.config.service.metric; import java.util.Collections; -import java.util.List; import org.hypertrace.core.documentstore.Datastore; -import org.hypertrace.core.serviceframework.docstore.metrics.DocStoreCustomMetricReportingConfig; import org.hypertrace.core.serviceframework.docstore.metrics.DocStoreMetricsRegistry; import org.hypertrace.core.serviceframework.spi.PlatformServiceLifecycle; @@ -15,14 +13,10 @@ public ConfigMetricsReporter( metricsRegistry = new DocStoreMetricsRegistry(datastore) .withPlatformLifecycle(lifecycle) - .withCustomMetrics(configurationCounterConfig); + .withCustomMetrics(Collections.emptyList()); } public void monitor() { metricsRegistry.monitor(); } - - @SuppressWarnings("FieldCanBeLocal") - private final List configurationCounterConfig = - Collections.emptyList(); }