Use ConcurrentHashMap.newKeySet() 16/104716/1
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 2 Mar 2023 11:43:34 +0000 (12:43 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Thu, 2 Mar 2023 11:46:27 +0000 (12:46 +0100)
commit3caade5a9dbe867519f6134ea496e4ce08caa5f8
tree30803c9a70d0544f925baa10a0d7b6427bc790ab
parent10a5c20edbdfc871d83c7d5117a0ce0c23e7c60c
Use ConcurrentHashMap.newKeySet()

Java 8 renders the Guava utility superfluous, as we can get a concurrent
Set from ConcurrentHashMap.

JIRA: CONTROLLER-2071
Change-Id: Icde0fb358a736b50eb0c334794de09afcaf1c094
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
third-party/atomix/storage/src/main/java/io/atomix/storage/journal/JournalSegment.java
third-party/atomix/storage/src/main/java/io/atomix/storage/journal/SegmentedJournal.java