mirror of https://github.com/apache/druid.git
make things immutable
This commit is contained in:
parent
d2c7a67a0c
commit
a855db2170
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue