From 0c3e73ccd2e209202d60bb61da2aed8df81b3db4 Mon Sep 17 00:00:00 2001 From: Channyboy Date: Tue, 19 Sep 2023 16:00:08 -0400 Subject: [PATCH] initialize dur as null for TimerBucketMaxConfiguration and TimerBucketMinConfiguration --- .../metrics/setup/config/TimerBucketMaxConfiguration.java | 2 +- .../metrics/setup/config/TimerBucketMinConfiguration.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/implementation/src/main/java/io/smallrye/metrics/setup/config/TimerBucketMaxConfiguration.java b/implementation/src/main/java/io/smallrye/metrics/setup/config/TimerBucketMaxConfiguration.java index 03b28f7e..756e2d41 100644 --- a/implementation/src/main/java/io/smallrye/metrics/setup/config/TimerBucketMaxConfiguration.java +++ b/implementation/src/main/java/io/smallrye/metrics/setup/config/TimerBucketMaxConfiguration.java @@ -34,7 +34,7 @@ public static Collection parse(String input) { String metricName = keyValueSplit[0]; TimerBucketMaxConfiguration sloMinConfiguration = null; - Duration dur; + Duration dur = null; // metricGroup= == invalid if (keyValueSplit.length == 2) { diff --git a/implementation/src/main/java/io/smallrye/metrics/setup/config/TimerBucketMinConfiguration.java b/implementation/src/main/java/io/smallrye/metrics/setup/config/TimerBucketMinConfiguration.java index 26e11170..bd14cfab 100644 --- a/implementation/src/main/java/io/smallrye/metrics/setup/config/TimerBucketMinConfiguration.java +++ b/implementation/src/main/java/io/smallrye/metrics/setup/config/TimerBucketMinConfiguration.java @@ -34,7 +34,7 @@ public static Collection parse(String input) { String metricName = keyValueSplit[0]; TimerBucketMinConfiguration sloMinConfiguration = null; - Duration dur; + Duration dur = null; // metricGroup= == invalid if (keyValueSplit.length == 2) {