Github user ifesdjeen commented on a diff in the pull request:

    https://github.com/apache/cassandra/pull/271#discussion_r220871228
  
    --- Diff: src/java/org/apache/cassandra/locator/Endpoints.java ---
    @@ -36,13 +33,16 @@
      */
     public abstract class Endpoints<E extends Endpoints<E>> extends 
AbstractReplicaCollection<E>
     {
    -    static final Map<InetAddressAndPort, Replica> EMPTY_MAP = 
Collections.unmodifiableMap(new LinkedHashMap<>());
    +    static final ReplicaMap<InetAddressAndPort> endpointMap(ReplicaList 
list) { return new ReplicaMap<>(list, Replica::endpoint); }
    --- End diff --
    
    This is a method, we can skip `final` here


---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to