Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

use ImmutableSet instead of unmodifiableSet

  • Loading branch information...
commit 0e4bf0916d971a1e3194b2b9dbb0654eedc863ce 1 parent 156fb11
@jbellis jbellis authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  src/java/org/apache/cassandra/config/DatabaseDescriptor.java
View
3  src/java/org/apache/cassandra/config/DatabaseDescriptor.java
@@ -25,6 +25,7 @@
import java.util.*;
import com.google.common.annotations.VisibleForTesting;
+import com.google.common.collect.ImmutableSet;
import com.google.common.primitives.Longs;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -874,7 +875,7 @@ public static String getSavedCachesLocation()
public static Set<InetAddress> getSeeds()
{
- return Collections.unmodifiableSet(new HashSet<InetAddress>(seedProvider.getSeeds()));
+ return ImmutableSet.<InetAddress>builder().addAll(seedProvider.getSeeds()).build();
}
public static InetAddress getListenAddress()
Please sign in to comment.
Something went wrong with that request. Please try again.