From fd7d3e5aceabb568c37f7eb31db2a4f48b0dffe9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xavier=20L=C3=A9aut=C3=A9?= Date: Tue, 21 Oct 2014 15:30:29 -0700 Subject: [PATCH] make it work with Java 8 --- .../server/router/JavascriptTieredBrokerSelectorStrategy.java | 2 +- .../router/JavascriptTieredBrokerSelectorStrategyTest.java | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/server/src/main/java/io/druid/server/router/JavascriptTieredBrokerSelectorStrategy.java b/server/src/main/java/io/druid/server/router/JavascriptTieredBrokerSelectorStrategy.java index 629c6a6873e..afc7997de43 100644 --- a/server/src/main/java/io/druid/server/router/JavascriptTieredBrokerSelectorStrategy.java +++ b/server/src/main/java/io/druid/server/router/JavascriptTieredBrokerSelectorStrategy.java @@ -34,7 +34,7 @@ import javax.script.ScriptException; public class JavaScriptTieredBrokerSelectorStrategy implements TieredBrokerSelectorStrategy { - private static interface SelectorFunction + public static interface SelectorFunction { public String apply(TieredBrokerConfig config, Query query); } diff --git a/server/src/test/java/io/druid/server/router/JavascriptTieredBrokerSelectorStrategyTest.java b/server/src/test/java/io/druid/server/router/JavascriptTieredBrokerSelectorStrategyTest.java index 3f7e9f14947..2b2162148ed 100644 --- a/server/src/test/java/io/druid/server/router/JavascriptTieredBrokerSelectorStrategyTest.java +++ b/server/src/test/java/io/druid/server/router/JavascriptTieredBrokerSelectorStrategyTest.java @@ -55,8 +55,6 @@ public class JavaScriptTieredBrokerSelectorStrategyTest @Test public void testGetBrokerServiceName() throws Exception { - - final LinkedHashMap tierBrokerMap = new LinkedHashMap<>(); tierBrokerMap.put("fast", "druid/fastBroker"); tierBrokerMap.put("slow", "druid/broker");