From a516dd394edbfcf48f51a84cc364238d4bd3a997 Mon Sep 17 00:00:00 2001 From: M <1216063060@qq.com> Date: Sat, 24 Feb 2024 13:36:22 +0800 Subject: [PATCH] remove extra blank lines in api --- .../org/apache/hugegraph/api/filter/DecompressInterceptor.java | 1 - .../main/java/org/apache/hugegraph/api/metrics/MetricsAPI.java | 1 - .../hugegraph/api/traversers/CustomizedCrosspointsAPI.java | 1 - .../src/main/java/org/apache/hugegraph/core/GraphManager.java | 1 - .../src/main/java/org/apache/hugegraph/metrics/MetricsUtil.java | 1 - 5 files changed, 5 deletions(-) diff --git a/hugegraph-server/hugegraph-api/src/main/java/org/apache/hugegraph/api/filter/DecompressInterceptor.java b/hugegraph-server/hugegraph-api/src/main/java/org/apache/hugegraph/api/filter/DecompressInterceptor.java index af8615a4cb..488dd509bd 100644 --- a/hugegraph-server/hugegraph-api/src/main/java/org/apache/hugegraph/api/filter/DecompressInterceptor.java +++ b/hugegraph-server/hugegraph-api/src/main/java/org/apache/hugegraph/api/filter/DecompressInterceptor.java @@ -47,7 +47,6 @@ public Object aroundReadFrom(ReaderInterceptorContext context) return context.proceed(); } - @NameBinding @Retention(RetentionPolicy.RUNTIME) public @interface Decompress { diff --git a/hugegraph-server/hugegraph-api/src/main/java/org/apache/hugegraph/api/metrics/MetricsAPI.java b/hugegraph-server/hugegraph-api/src/main/java/org/apache/hugegraph/api/metrics/MetricsAPI.java index 4682c35df7..b0ca6845ad 100644 --- a/hugegraph-server/hugegraph-api/src/main/java/org/apache/hugegraph/api/metrics/MetricsAPI.java +++ b/hugegraph-server/hugegraph-api/src/main/java/org/apache/hugegraph/api/metrics/MetricsAPI.java @@ -362,7 +362,6 @@ private Map> statistics() { Counter successCounter = reporter.counters().get( joinWithSlash(metricsName, METRICS_PATH_SUCCESS_COUNTER)); - Histogram histogram = entry.getValue(); Map entryMetricsMap = new HashMap<>(); entryMetricsMap.put(MetricsKeys.MAX_RESPONSE_TIME.name(), diff --git a/hugegraph-server/hugegraph-api/src/main/java/org/apache/hugegraph/api/traversers/CustomizedCrosspointsAPI.java b/hugegraph-server/hugegraph-api/src/main/java/org/apache/hugegraph/api/traversers/CustomizedCrosspointsAPI.java index 03ebb82180..8af4969ddb 100644 --- a/hugegraph-server/hugegraph-api/src/main/java/org/apache/hugegraph/api/traversers/CustomizedCrosspointsAPI.java +++ b/hugegraph-server/hugegraph-api/src/main/java/org/apache/hugegraph/api/traversers/CustomizedCrosspointsAPI.java @@ -114,7 +114,6 @@ public String post(@Context GraphManager manager, measure.addIterCount(traverser.vertexIterCounter.get(), traverser.edgeIterCounter.get()); - Iterator iterVertex; Set vertexIds = new HashSet<>(); if (request.withPath) { diff --git a/hugegraph-server/hugegraph-api/src/main/java/org/apache/hugegraph/core/GraphManager.java b/hugegraph-server/hugegraph-api/src/main/java/org/apache/hugegraph/core/GraphManager.java index 1830d81c76..cdd318428b 100644 --- a/hugegraph-server/hugegraph-api/src/main/java/org/apache/hugegraph/core/GraphManager.java +++ b/hugegraph-server/hugegraph-api/src/main/java/org/apache/hugegraph/core/GraphManager.java @@ -347,7 +347,6 @@ private HugeAuthenticator authenticator() { return this.authenticator; } - private void closeTx(final Set graphSourceNamesToCloseTxOn, final Transaction.Status tx) { final Set graphsToCloseTxOn = new HashSet<>(); diff --git a/hugegraph-server/hugegraph-api/src/main/java/org/apache/hugegraph/metrics/MetricsUtil.java b/hugegraph-server/hugegraph-api/src/main/java/org/apache/hugegraph/metrics/MetricsUtil.java index 82f502e823..47f28b44fa 100644 --- a/hugegraph-server/hugegraph-api/src/main/java/org/apache/hugegraph/metrics/MetricsUtil.java +++ b/hugegraph-server/hugegraph-api/src/main/java/org/apache/hugegraph/metrics/MetricsUtil.java @@ -63,7 +63,6 @@ public class MetricsUtil { public static final String RIGHT_NAME_STR = ",} "; public static final String PROM_HELP_NAME = "hugegraph_info"; - public static Gauge registerGauge(Class clazz, String name, Gauge gauge) { return REGISTRY.register(MetricRegistry.name(clazz, name), gauge);