Skip to content

Commit

Permalink
use ImmutableSet instead of unmodifiableSet
Browse files Browse the repository at this point in the history
  • Loading branch information
jbellis committed May 10, 2013
1 parent 156fb11 commit 0e4bf09
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/java/org/apache/cassandra/config/DatabaseDescriptor.java
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import java.util.*; import java.util.*;


import com.google.common.annotations.VisibleForTesting; import com.google.common.annotations.VisibleForTesting;
import com.google.common.collect.ImmutableSet;
import com.google.common.primitives.Longs; import com.google.common.primitives.Longs;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
Expand Down Expand Up @@ -874,7 +875,7 @@ public static String getSavedCachesLocation()


public static Set<InetAddress> getSeeds() 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() public static InetAddress getListenAddress()
Expand Down

0 comments on commit 0e4bf09

Please sign in to comment.