Skip to content

Commit

Permalink
Drop usage of Map.of to be java 8 compliant
Browse files Browse the repository at this point in the history
  • Loading branch information
andreidan committed Sep 25, 2019
1 parent 8525469 commit 9f854e1
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Locale;
import java.util.Map;
Expand Down Expand Up @@ -334,12 +335,12 @@ public void testExplainParseOriginationDate() throws Exception {

// setting the lifecycle origination date to an explicit value overrides the date parsing
long originationDate = 42L;
Map<String, Object> settings = new HashMap<>();
settings.put(LifecycleSettings.LIFECYCLE_PARSE_ORIGINATION_DATE, true);
settings.put(LifecycleSettings.LIFECYCLE_ORIGINATION_DATE, originationDate);
client().admin().indices().prepareUpdateSettings(indexName)
.setSettings(
Map.of(
LifecycleSettings.LIFECYCLE_PARSE_ORIGINATION_DATE, true,
LifecycleSettings.LIFECYCLE_ORIGINATION_DATE, originationDate)
).get();
.setSettings(settings)
.get();

assertBusy(() -> {
IndexLifecycleExplainResponse indexResponse = executeExplainRequestAndGetTestIndexResponse(indexName);
Expand Down

0 comments on commit 9f854e1

Please sign in to comment.