Commits

Michael Klishin  committed 76c089a

Cosmetics

  • Participants
  • Parent commits b864fa7

Comments (0)

Files changed (7)

File metrics-clojure-core/src/metrics/core.clj

 (ns metrics.core
   (:use [metrics.utils :only (metric-name)])
-  (:import (com.yammer.metrics Metrics))
-  (:import (com.yammer.metrics.reporting ConsoleReporter))
-  (:import (java.util.concurrent TimeUnit)))
+  (:import com.yammer.metrics.Metrics
+           java.util.concurrent.TimeUnit
+           com.yammer.metrics.reporting.ConsoleReporter))
 
 
 (defn remove-metric

File metrics-clojure-core/src/metrics/counters.clj

 (ns metrics.counters
   (:use [metrics.utils :only (metric-name desugared-title)])
-  (:import (com.yammer.metrics Metrics))
-  (:import (com.yammer.metrics.core Counter)))
+  (:import com.yammer.metrics.Metrics
+           com.yammer.metrics.core.Counter
+           java.util.concurrent.TimeUnit))
 
 
 ; Create ----------------------------------------------------------------------

File metrics-clojure-core/src/metrics/gauges.clj

 (ns metrics.gauges
   (:use [metrics.utils :only (metric-name desugared-title)])
-  (:import (com.yammer.metrics Metrics))
-  (:import (com.yammer.metrics.core Gauge)))
+  (:import com.yammer.metrics.Metrics
+           com.yammer.metrics.core.Gauge))
 
 
 ; Create ----------------------------------------------------------------------

File metrics-clojure-core/src/metrics/histograms.clj

 (ns metrics.histograms
   (:use [metrics.utils :only (metric-name get-percentiles desugared-title)])
-  (:import (com.yammer.metrics Metrics))
-  (:import (com.yammer.metrics.core Histogram MetricName)))
+  (:import com.yammer.metrics.Metrics
+           [com.yammer.metrics.core Histogram MetricName]))
 
 
 ; Create ----------------------------------------------------------------------

File metrics-clojure-core/src/metrics/meters.clj

 (ns metrics.meters
   (:refer-clojure :exclude [count])
   (:use [metrics.utils :only (metric-name desugared-title)])
-  (:import (com.yammer.metrics Metrics))
-  (:import (com.yammer.metrics.core Meter))
-  (:import (java.util.concurrent TimeUnit)))
+  (:import com.yammer.metrics.Metrics
+           com.yammer.metrics.core.Meter
+           java.util.concurrent.TimeUnit))
 
 
 ; Create ----------------------------------------------------------------------

File metrics-clojure-core/src/metrics/timers.clj

 (ns metrics.timers
   (:use [metrics.utils :only (metric-name get-percentiles desugared-title)])
-  (:import (com.yammer.metrics Metrics))
-  (:import (com.yammer.metrics.core Timer MetricName))
-  (:import (java.util.concurrent TimeUnit)))
+  (:import com.yammer.metrics.Metrics
+           [com.yammer.metrics.core Timer MetricName]
+           java.util.concurrent.TimeUnit))
 
 
 ; Create ----------------------------------------------------------------------

File metrics-clojure-core/src/metrics/utils.clj

 (ns metrics.utils
-  (:import (com.yammer.metrics Metrics))
-  (:import (com.yammer.metrics.core Sampling MetricName)))
+  (:import com.yammer.metrics.Metrics
+           [com.yammer.metrics.core Sampling MetricName]))
 
 
 (defn get-percentile [^Sampling metric ^double percentile]