make things immutable

This commit is contained in:
fjy 2014-08-08 10:53:10 -07:00
parent d2c7a67a0c
commit a855db2170
1 changed files with 2 additions and 1 deletions

View File

@ -20,6 +20,7 @@
package io.druid.server.router; package io.druid.server.router;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap; import com.google.common.collect.ImmutableMap;
import io.druid.client.DruidServer; import io.druid.client.DruidServer;
import org.joda.time.Period; import org.joda.time.Period;
@ -100,6 +101,6 @@ public class TieredBrokerConfig
public List<TieredBrokerSelectorStrategy> getStrategies() public List<TieredBrokerSelectorStrategy> getStrategies()
{ {
return strategies; return ImmutableList.copyOf(strategies);
} }
} }