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

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


The following commit(s) were added to refs/heads/master by this push:
     new 336ba74a Adjust according to coding standard (#11596)
336ba74a is described below

commit 336ba74aa496646379050990ff271e0316db41e6
Author: yx9o <[email protected]>
AuthorDate: Tue Aug 3 17:46:53 2021 +0800

    Adjust according to coding standard (#11596)
---
 .../metrics/prometheus/hikari/HikariMetricsTrackerFactory.java     | 6 +++---
 .../agent/metrics/prometheus/hikari/HikariSimpleMetrics.java       | 7 ++++---
 2 files changed, 7 insertions(+), 6 deletions(-)

diff --git 
a/shardingsphere-agent/shardingsphere-agent-plugins/shardingsphere-agent-plugin-metrics/shardingsphere-agent-metrics-prometheus/src/main/java/org/apache/shardingsphere/agent/metrics/prometheus/hikari/HikariMetricsTrackerFactory.java
 
b/shardingsphere-agent/shardingsphere-agent-plugins/shardingsphere-agent-plugin-metrics/shardingsphere-agent-metrics-prometheus/src/main/java/org/apache/shardingsphere/agent/metrics/prometheus/hikari/HikariMetricsTrackerFactory.java
index 08d992b..616623f 100644
--- 
a/shardingsphere-agent/shardingsphere-agent-plugins/shardingsphere-agent-plugin-metrics/shardingsphere-agent-metrics-prometheus/src/main/java/org/apache/shardingsphere/agent/metrics/prometheus/hikari/HikariMetricsTrackerFactory.java
+++ 
b/shardingsphere-agent/shardingsphere-agent-plugins/shardingsphere-agent-plugin-metrics/shardingsphere-agent-metrics-prometheus/src/main/java/org/apache/shardingsphere/agent/metrics/prometheus/hikari/HikariMetricsTrackerFactory.java
@@ -41,7 +41,7 @@ public final class HikariMetricsTrackerFactory implements 
MetricsTrackerFactory
     /**
      * Get the factory with the specific registry.
      *
-     * @param  collectorRegistry the metrics registry
+     * @param collectorRegistry the metrics registry
      * @return default metrics tracker factory
      */
     public static HikariMetricsTrackerFactory getInstance(final 
CollectorRegistry collectorRegistry) {
@@ -54,8 +54,8 @@ public final class HikariMetricsTrackerFactory implements 
MetricsTrackerFactory
     /**
      * Create the metric tracker.
      *
-     * @param  poolName the hikariCP pool name
-     * @param  poolStats the hikariCP pool state
+     * @param poolName the hikariCP pool name
+     * @param poolStats the hikariCP pool state
      * @return the created metrics tracker
      */
     @Override
diff --git 
a/shardingsphere-agent/shardingsphere-agent-plugins/shardingsphere-agent-plugin-metrics/shardingsphere-agent-metrics-prometheus/src/main/java/org/apache/shardingsphere/agent/metrics/prometheus/hikari/HikariSimpleMetrics.java
 
b/shardingsphere-agent/shardingsphere-agent-plugins/shardingsphere-agent-plugin-metrics/shardingsphere-agent-metrics-prometheus/src/main/java/org/apache/shardingsphere/agent/metrics/prometheus/hikari/HikariSimpleMetrics.java
index e735a88..a37c556 100644
--- 
a/shardingsphere-agent/shardingsphere-agent-plugins/shardingsphere-agent-plugin-metrics/shardingsphere-agent-metrics-prometheus/src/main/java/org/apache/shardingsphere/agent/metrics/prometheus/hikari/HikariSimpleMetrics.java
+++ 
b/shardingsphere-agent/shardingsphere-agent-plugins/shardingsphere-agent-plugin-metrics/shardingsphere-agent-metrics-prometheus/src/main/java/org/apache/shardingsphere/agent/metrics/prometheus/hikari/HikariSimpleMetrics.java
@@ -52,6 +52,7 @@ public final class HikariSimpleMetrics {
     private final String poolName;
     
     public enum MetricsType {
+
         CONNECTION_ACQUIRED_NANOS,
         CONNECTION_USAGE_MILLIS,
         CONNECTION_CREATED_MILLIS,
@@ -78,7 +79,7 @@ public final class HikariSimpleMetrics {
     /**
      * register metrics.
      *
-     * @param  registry the metrics register
+     * @param registry the metrics register
      */
     public void register(final CollectorRegistry registry) {
         CONNECTION_TIMEOUT_COUNTER.register(registry);
@@ -90,8 +91,8 @@ public final class HikariSimpleMetrics {
     /**
      * observe metrics.
      *
-     * @param  type the metrics type
-     * @param  value the metrics value
+     * @param type the metrics type
+     * @param value the metrics value
      */
     public void observe(final MetricsType type, final double value) {
         switch (type) {

Reply via email to