diff --git a/checkstyle.xml b/checkstyle.xml
index ef205414d..fd483abfa 100644
--- a/checkstyle.xml
+++ b/checkstyle.xml
@@ -255,7 +255,6 @@
-
diff --git a/integration-tests/it-spring-boot-smoke-test/pom.xml b/integration-tests/it-spring-boot-smoke-test/pom.xml
index 2121c27c0..1a421949d 100644
--- a/integration-tests/it-spring-boot-smoke-test/pom.xml
+++ b/integration-tests/it-spring-boot-smoke-test/pom.xml
@@ -77,7 +77,7 @@
com.diffplug.spotless
spotless-maven-plugin
- 2.43.0
+ 2.44.0
diff --git a/pom.xml b/pom.xml
index c84af0d57..8dc201039 100644
--- a/pom.xml
+++ b/pom.xml
@@ -223,7 +223,7 @@
com.diffplug.spotless
spotless-maven-plugin
- 2.43.0
+ 2.44.0
diff --git a/prometheus-metrics-exporter-opentelemetry/src/main/java/io/prometheus/metrics/exporter/opentelemetry/otelmodel/PrometheusMetricData.java b/prometheus-metrics-exporter-opentelemetry/src/main/java/io/prometheus/metrics/exporter/opentelemetry/otelmodel/PrometheusMetricData.java
index baca70774..7bf4f5e27 100644
--- a/prometheus-metrics-exporter-opentelemetry/src/main/java/io/prometheus/metrics/exporter/opentelemetry/otelmodel/PrometheusMetricData.java
+++ b/prometheus-metrics-exporter-opentelemetry/src/main/java/io/prometheus/metrics/exporter/opentelemetry/otelmodel/PrometheusMetricData.java
@@ -53,7 +53,7 @@ static String convertUnit(Unit unit) {
return null;
}
switch (unit.toString()) {
- // Time
+ // Time
case "days":
return "d";
case "hours":
@@ -68,7 +68,7 @@ static String convertUnit(Unit unit) {
return "us";
case "nanoseconds":
return "ns";
- // Bytes
+ // Bytes
case "bytes":
return "By";
case "kibibytes":
@@ -87,7 +87,7 @@ static String convertUnit(Unit unit) {
return "GBy";
case "terabytes":
return "TBy";
- // SI
+ // SI
case "meters":
return "m";
case "volts":
@@ -100,14 +100,14 @@ static String convertUnit(Unit unit) {
return "W";
case "grams":
return "g";
- // Misc
+ // Misc
case "celsius":
return "Cel";
case "hertz":
return "Hz";
case "percent":
return "%";
- // default
+ // default
default:
return unit.toString();
}
diff --git a/prometheus-metrics-instrumentation-dropwizard5/src/main/java/io/prometheus/metrics/instrumentation/dropwizard5/DropwizardExports.java b/prometheus-metrics-instrumentation-dropwizard5/src/main/java/io/prometheus/metrics/instrumentation/dropwizard5/DropwizardExports.java
index bd3a163ac..c050871ce 100644
--- a/prometheus-metrics-instrumentation-dropwizard5/src/main/java/io/prometheus/metrics/instrumentation/dropwizard5/DropwizardExports.java
+++ b/prometheus-metrics-instrumentation-dropwizard5/src/main/java/io/prometheus/metrics/instrumentation/dropwizard5/DropwizardExports.java
@@ -24,6 +24,7 @@
import java.util.Collections;
import java.util.Map;
import java.util.Optional;
+import java.util.Set;
import java.util.concurrent.TimeUnit;
import java.util.logging.Level;
import java.util.logging.Logger;
@@ -196,8 +197,9 @@ MetricSnapshot fromMeter(String dropwizardName, Meter meter) {
@Override
public MetricSnapshots collect() {
MetricSnapshots.Builder metricSnapshots = MetricSnapshots.builder();
- for (@SuppressWarnings("rawtypes")
- Map.Entry entry : registry.getGauges(metricFilter).entrySet()) {
+ @SuppressWarnings("rawtypes")
+ Set> entries = registry.getGauges(metricFilter).entrySet();
+ for (@SuppressWarnings("rawtypes") Map.Entry entry : entries) {
Optional.ofNullable(fromGauge(entry.getKey().getKey(), entry.getValue()))
.ifPresent(metricSnapshots::metricSnapshot);
}