Skip to content

Commit

Permalink
chore(license): fix 3rd party refer code
Browse files Browse the repository at this point in the history
  • Loading branch information
imbajin committed Jan 19, 2023
1 parent 8724b12 commit 0483028
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// TODO: add refer in LICESEN or Remove this file if not necessary, who use it? e.g:
// (https://github.com/apache/incubator-hugegraph/blob/master/hugegraph-dist/src/assembly/static/bin/checksocket.sh)

// Copyright 2017 JanusGraph Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -18,7 +21,7 @@
import java.net.InetAddress;
import java.net.Socket;

/*
/**
* This doesn't really belong here. It's only used in the zipfile
* distribution to check whether Gremlin Server or ES are listening on
* their respective TCP ports. But it's so tiny that I don't want
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import com.google.common.collect.Ordering;

/**
* TODO: ensure the refer is valid
* Reference:
* <a href="https://stackoverflow.com/questions/109383/sort-a-mapkey-value-by-values">...</a>
*/
Expand All @@ -37,7 +38,7 @@ public class OrderLimitMap<K extends Comparable<K>, V extends Comparable<V>>
private final Map<K, V> valueMap;

private static <V extends Comparable<V>> Ordering<? super V> incr() {
return Ordering.from((V o1, V o2) -> o1.compareTo(o2));
return Ordering.from(Comparable::compareTo);
}

private static <V extends Comparable<V>> Ordering<? super V> decr() {
Expand Down

0 comments on commit 0483028

Please sign in to comment.