This is an automated email from the ASF dual-hosted git repository.

rzo1 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/storm.git


The following commit(s) were added to refs/heads/master by this push:
     new ae671a50d Checkstyle auto-fix of external/storm-metrics (#9177)
ae671a50d is described below

commit ae671a50dec2ac688c8f0fee89ef25dc1f130ea0
Author: sergio <[email protected]>
AuthorDate: Sun Oct 18 20:15:12 2026 +0200

    Checkstyle auto-fix of external/storm-metrics (#9177)
    
    Co-authored-by: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
---
 .../metrics/hdrhistogram/HistogramMetric.java      | 26 ++++++++++++++--------
 .../org/apache/storm/metrics/sigar/CPUMetric.java  |  2 --
 2 files changed, 17 insertions(+), 11 deletions(-)

diff --git 
a/external/storm-metrics/src/main/java/org/apache/storm/metrics/hdrhistogram/HistogramMetric.java
 
b/external/storm-metrics/src/main/java/org/apache/storm/metrics/hdrhistogram/HistogramMetric.java
index 99b21c6e8..2bd514763 100644
--- 
a/external/storm-metrics/src/main/java/org/apache/storm/metrics/hdrhistogram/HistogramMetric.java
+++ 
b/external/storm-metrics/src/main/java/org/apache/storm/metrics/hdrhistogram/HistogramMetric.java
@@ -37,25 +37,32 @@ public class HistogramMetric implements IMetric {
 
     /**
      * (From the Constructor of Histogram)
-     * Construct a Histogram given the Lowest and Highest values to be tracked 
and a number of significant
-     * decimal digits. Providing a lowestDiscernibleValue is useful is 
situations where the units used
-     * for the histogram's values are much smaller that the minimal accuracy 
required. E.g. when tracking
-     * time values stated in nanosecond units, where the minimal accuracy 
required is a microsecond, the
+     * Construct a Histogram given the Lowest and Highest values to be tracked 
and a number of
+     * significant
+     * decimal digits. Providing a lowestDiscernibleValue is useful is 
situations where the units
+     * used
+     * for the histogram's values are much smaller that the minimal accuracy 
required. E.g. when
+     * tracking
+     * time values stated in nanosecond units, where the minimal accuracy 
required is a microsecond,
+     * the
      * proper value for lowestDiscernibleValue would be 1000.
      *
-     * @param lowestDiscernibleValue         The lowest value that can be 
discerned (distinguished from 0) by the
+     * @param lowestDiscernibleValue The lowest value that can be discerned 
(distinguished from 0)
+     *     by the
      *                                       histogram. Must be a positive 
integer that is {@literal >=} 1. May be
      *                                       internally rounded down to 
nearest power of 2
      *                                       (if null 1 is used).
-     * @param highestTrackableValue          The highest value to be tracked 
by the histogram. Must be a positive
+     * @param highestTrackableValue The highest value to be tracked by the 
histogram. Must be a
+     *     positive
      *                                       integer that is {@literal >=} (2 
* lowestDiscernibleValue).
      *                                       (if null 2 * 
lowestDiscernibleValue is used and auto-resize is enabled)
-     * @param numberOfSignificantValueDigits Specifies the precision to use. 
This is the number of significant
+     * @param numberOfSignificantValueDigits Specifies the precision to use. 
This is the number of
+     *     significant
      *                                       decimal digits to which the 
histogram will maintain value resolution
      *                                       and separation. Must be a 
non-negative integer between 0 and 5.
      */
     public HistogramMetric(Long lowestDiscernibleValue, Long 
highestTrackableValue,
-                     final int numberOfSignificantValueDigits) {
+                           final int numberOfSignificantValueDigits) {
         boolean autoResize = false;
         if (lowestDiscernibleValue == null) {
             lowestDiscernibleValue = 1L;
@@ -64,7 +71,8 @@ public class HistogramMetric implements IMetric {
             highestTrackableValue = 2 * lowestDiscernibleValue;
             autoResize = true;
         }
-        histo = new Histogram(lowestDiscernibleValue, highestTrackableValue, 
numberOfSignificantValueDigits);
+        histo = new Histogram(lowestDiscernibleValue, highestTrackableValue,
+                numberOfSignificantValueDigits);
         if (autoResize) {
             histo.setAutoResize(true);
         }
diff --git 
a/external/storm-metrics/src/main/java/org/apache/storm/metrics/sigar/CPUMetric.java
 
b/external/storm-metrics/src/main/java/org/apache/storm/metrics/sigar/CPUMetric.java
index 59dac4216..3186fb2c7 100644
--- 
a/external/storm-metrics/src/main/java/org/apache/storm/metrics/sigar/CPUMetric.java
+++ 
b/external/storm-metrics/src/main/java/org/apache/storm/metrics/sigar/CPUMetric.java
@@ -19,9 +19,7 @@
 package org.apache.storm.metrics.sigar;
 
 import java.util.HashMap;
-
 import org.apache.storm.metric.api.IMetric;
-
 import org.hyperic.sigar.ProcCpu;
 import org.hyperic.sigar.Sigar;
 

Reply via email to