Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(server): remove extra blank lines #2459

Merged
merged 3 commits into from
Feb 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -47,7 +47,6 @@ public Object aroundReadFrom(ReaderInterceptorContext context)
return context.proceed();
}


@NameBinding
@Retention(RetentionPolicy.RUNTIME)
public @interface Decompress {
Original file line number Diff line number Diff line change
@@ -362,7 +362,6 @@ private Map<String, Map<String, Object>> statistics() {
Counter successCounter = reporter.counters().get(
joinWithSlash(metricsName, METRICS_PATH_SUCCESS_COUNTER));


Histogram histogram = entry.getValue();
Map<String, Object> entryMetricsMap = new HashMap<>();
entryMetricsMap.put(MetricsKeys.MAX_RESPONSE_TIME.name(),
Original file line number Diff line number Diff line change
@@ -114,7 +114,6 @@ public String post(@Context GraphManager manager,
measure.addIterCount(traverser.vertexIterCounter.get(),
traverser.edgeIterCounter.get());


Iterator<?> iterVertex;
Set<Id> vertexIds = new HashSet<>();
if (request.withPath) {
Original file line number Diff line number Diff line change
@@ -347,7 +347,6 @@ private HugeAuthenticator authenticator() {
return this.authenticator;
}


private void closeTx(final Set<String> graphSourceNamesToCloseTxOn,
final Transaction.Status tx) {
final Set<Graph> graphsToCloseTxOn = new HashSet<>();
Original file line number Diff line number Diff line change
@@ -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 <T> Gauge<T> registerGauge(Class<?> clazz, String name,
Gauge<T> gauge) {
return REGISTRY.register(MetricRegistry.name(clazz, name), gauge);
Original file line number Diff line number Diff line change
@@ -190,7 +190,6 @@ public Set<Id> kcore(Iterator<Vertex> vertices, Directions direction,
return extractKcore(map, k);
}


@SuppressWarnings("unchecked")
private static Set<Id> extractKcore(SimilarsMap similarsMap, int k) {
assert similarsMap.size() == 1;
Original file line number Diff line number Diff line change
@@ -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) {
Original file line number Diff line number Diff line change
@@ -48,7 +48,6 @@ public class HugeSecurityManager extends SecurityManager {
// TODO: add "suppressAccessChecks"
private static final Set<String> DENIED_PERMISSIONS = ImmutableSet.of("setSecurityManager");


private static final Set<String> ACCEPT_CLASS_LOADERS = ImmutableSet.of(
"groovy.lang.GroovyClassLoader",
"sun.reflect.DelegatingClassLoader",
Original file line number Diff line number Diff line change
@@ -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
*/
Loading