From dfee5bf6aa84b19eaffb8bc168cdd86896cbbe40 Mon Sep 17 00:00:00 2001 From: M <87920097+msgui@users.noreply.github.com> Date: Sun, 25 Feb 2024 11:45:00 +0800 Subject: [PATCH] fix(server): remove extra blank lines (#2459) * remove extra blank lines in api * remove extra blank lines in core * remove extra blank lines in scylladb --- .../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 - .../org/apache/hugegraph/job/algorithm/comm/KCoreAlgorithm.java | 1 - .../hugegraph/masterelection/StandardClusterRoleStore.java | 1 - .../java/org/apache/hugegraph/security/HugeSecurityManager.java | 1 - .../hugegraph/backend/store/scylladb/ScyllaDBTablesWithMV.java | 1 - 9 files changed, 9 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); diff --git a/hugegraph-server/hugegraph-core/src/main/java/org/apache/hugegraph/job/algorithm/comm/KCoreAlgorithm.java b/hugegraph-server/hugegraph-core/src/main/java/org/apache/hugegraph/job/algorithm/comm/KCoreAlgorithm.java index e51aa27ac0..eb334e5cbe 100644 --- a/hugegraph-server/hugegraph-core/src/main/java/org/apache/hugegraph/job/algorithm/comm/KCoreAlgorithm.java +++ b/hugegraph-server/hugegraph-core/src/main/java/org/apache/hugegraph/job/algorithm/comm/KCoreAlgorithm.java @@ -190,7 +190,6 @@ public Set kcore(Iterator vertices, Directions direction, return extractKcore(map, k); } - @SuppressWarnings("unchecked") private static Set extractKcore(SimilarsMap similarsMap, int k) { assert similarsMap.size() == 1; diff --git a/hugegraph-server/hugegraph-core/src/main/java/org/apache/hugegraph/masterelection/StandardClusterRoleStore.java b/hugegraph-server/hugegraph-core/src/main/java/org/apache/hugegraph/masterelection/StandardClusterRoleStore.java index a235fa1c57..4885410c7d 100644 --- a/hugegraph-server/hugegraph-core/src/main/java/org/apache/hugegraph/masterelection/StandardClusterRoleStore.java +++ b/hugegraph-server/hugegraph-core/src/main/java/org/apache/hugegraph/masterelection/StandardClusterRoleStore.java @@ -176,7 +176,6 @@ public static final class P { public static final String TYPE = Graph.Hidden.hide("role_type"); } - public static final class Schema extends SchemaDefine { public Schema(HugeGraphParams graph) { diff --git a/hugegraph-server/hugegraph-core/src/main/java/org/apache/hugegraph/security/HugeSecurityManager.java b/hugegraph-server/hugegraph-core/src/main/java/org/apache/hugegraph/security/HugeSecurityManager.java index 7c4f33c546..5e2dc761b7 100644 --- a/hugegraph-server/hugegraph-core/src/main/java/org/apache/hugegraph/security/HugeSecurityManager.java +++ b/hugegraph-server/hugegraph-core/src/main/java/org/apache/hugegraph/security/HugeSecurityManager.java @@ -48,7 +48,6 @@ public class HugeSecurityManager extends SecurityManager { // TODO: add "suppressAccessChecks" private static final Set DENIED_PERMISSIONS = ImmutableSet.of("setSecurityManager"); - private static final Set ACCEPT_CLASS_LOADERS = ImmutableSet.of( "groovy.lang.GroovyClassLoader", "sun.reflect.DelegatingClassLoader", diff --git a/hugegraph-server/hugegraph-scylladb/src/main/java/org/apache/hugegraph/backend/store/scylladb/ScyllaDBTablesWithMV.java b/hugegraph-server/hugegraph-scylladb/src/main/java/org/apache/hugegraph/backend/store/scylladb/ScyllaDBTablesWithMV.java index 9846a18446..4d0500a231 100644 --- a/hugegraph-server/hugegraph-scylladb/src/main/java/org/apache/hugegraph/backend/store/scylladb/ScyllaDBTablesWithMV.java +++ b/hugegraph-server/hugegraph-scylladb/src/main/java/org/apache/hugegraph/backend/store/scylladb/ScyllaDBTablesWithMV.java @@ -221,7 +221,6 @@ protected void dropTable(CassandraSessionPool.Session session) { super.dropTable(session); } - /** * Query data from label index table if just want to query by label */