Description
in current TopN, it should save top(k) result and keep it in double value, just like this:
```
public class Counter<T> implements Serializable
```
But its Comparator method use "==" directly to compare the result, it may cause the error "violate its general contract" when calling it.
```
private static final Comparator ASC_COMPARATOR = new Comparator<Counter>() {
@Override
public int compare(Counter o1, Counter o2)
};
```
Attachments
Issue Links
- links to