clean up some redundant code

This commit is contained in:
fjy 2014-08-08 10:52:05 -07:00
parent f1409f751a
commit d2c7a67a0c
1 changed files with 2 additions and 9 deletions

View File

@ -19,8 +19,6 @@
package io.druid.server.router; package io.druid.server.router;
import com.google.api.client.util.Lists;
import com.google.common.base.Throwables;
import com.google.inject.Inject; import com.google.inject.Inject;
import com.google.inject.Provider; import com.google.inject.Provider;
@ -30,17 +28,12 @@ import java.util.List;
*/ */
public class TieredBrokerSelectorStrategiesProvider implements Provider<List<TieredBrokerSelectorStrategy>> public class TieredBrokerSelectorStrategiesProvider implements Provider<List<TieredBrokerSelectorStrategy>>
{ {
private final List<TieredBrokerSelectorStrategy> strategies = Lists.newArrayList(); private final List<TieredBrokerSelectorStrategy> strategies;
@Inject @Inject
public TieredBrokerSelectorStrategiesProvider(TieredBrokerConfig config) public TieredBrokerSelectorStrategiesProvider(TieredBrokerConfig config)
{ {
try { this.strategies = config.getStrategies();
this.strategies.addAll(config.getStrategies());
}
catch (Exception e) {
throw Throwables.propagate(e);
}
} }
@Override @Override