From d2c7a67a0ce1ef811af9d497cea597697d2d4cc4 Mon Sep 17 00:00:00 2001 From: fjy Date: Fri, 8 Aug 2014 10:52:05 -0700 Subject: [PATCH] clean up some redundant code --- .../TieredBrokerSelectorStrategiesProvider.java | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/server/src/main/java/io/druid/server/router/TieredBrokerSelectorStrategiesProvider.java b/server/src/main/java/io/druid/server/router/TieredBrokerSelectorStrategiesProvider.java index 7e3ea6ae472..268ae31407b 100644 --- a/server/src/main/java/io/druid/server/router/TieredBrokerSelectorStrategiesProvider.java +++ b/server/src/main/java/io/druid/server/router/TieredBrokerSelectorStrategiesProvider.java @@ -19,8 +19,6 @@ 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.Provider; @@ -30,17 +28,12 @@ import java.util.List; */ public class TieredBrokerSelectorStrategiesProvider implements Provider> { - private final List strategies = Lists.newArrayList(); + private final List strategies; @Inject public TieredBrokerSelectorStrategiesProvider(TieredBrokerConfig config) { - try { - this.strategies.addAll(config.getStrategies()); - } - catch (Exception e) { - throw Throwables.propagate(e); - } + this.strategies = config.getStrategies(); } @Override