Motivation: Simplify code with newer Java API. It also reduce levels of indirection, but I don't think we can gain any visible performance improvements out of this. Modifications: Replace Collection.newSetFromMap(new ConcurrentHashMap()) with ConcurrentHashMap.newKeySet(). Result: Use Java8 APIs. |
||
---|---|---|
.. | ||
main | ||
test |