This commit is contained in:
Phillip Webb
2016-10-03 21:58:13 -07:00
parent f59cc25e2b
commit 39ed0d4dfb
3 changed files with 6 additions and 10 deletions

View File

@@ -16,8 +16,7 @@
package org.springframework.boot.autoconfigure.elasticsearch.jest;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Arrays;
import java.util.List;
import org.springframework.boot.context.properties.ConfigurationProperties;
@@ -34,8 +33,7 @@ public class JestProperties {
/**
* Comma-separated list of the Elasticsearch instances to use.
*/
private List<String> uris = new ArrayList<String>(Collections.singletonList(
"http://localhost:9200"));
private List<String> uris = Arrays.asList("http://localhost:9200");
/**
* Login user.