make it work with Java 8

This commit is contained in:
Xavier Léauté 2014-10-21 15:30:29 -07:00
parent 5a7d186e88
commit fd7d3e5ace
2 changed files with 1 additions and 3 deletions

View File

@ -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);
}

View File

@ -55,8 +55,6 @@ public class JavaScriptTieredBrokerSelectorStrategyTest
@Test
public void testGetBrokerServiceName() throws Exception
{
final LinkedHashMap<String, String> tierBrokerMap = new LinkedHashMap<>();
tierBrokerMap.put("fast", "druid/fastBroker");
tierBrokerMap.put("slow", "druid/broker");