Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
1ec8e822
Commit
1ec8e822
authored
Aug 01, 2019
by
Stephane Nicoll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix broken build
parent
a76aaabc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
RestClientConfigurations.java
...onfigure/elasticsearch/rest/RestClientConfigurations.java
+4
-4
No files found.
spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/elasticsearch/rest/RestClientConfigurations.java
View file @
1ec8e822
...
@@ -46,7 +46,7 @@ class RestClientConfigurations {
...
@@ -46,7 +46,7 @@ class RestClientConfigurations {
@Bean
@Bean
@ConditionalOnMissingBean
@ConditionalOnMissingBean
RestClientBuilder
restClientBuilder
(
RestClientProperties
properties
,
public
RestClientBuilder
restClientBuilder
(
RestClientProperties
properties
,
ObjectProvider
<
RestClientBuilderCustomizer
>
builderCustomizers
)
{
ObjectProvider
<
RestClientBuilderCustomizer
>
builderCustomizers
)
{
HttpHost
[]
hosts
=
properties
.
getUris
().
stream
().
map
(
HttpHost:
:
create
).
toArray
(
HttpHost
[]::
new
);
HttpHost
[]
hosts
=
properties
.
getUris
().
stream
().
map
(
HttpHost:
:
create
).
toArray
(
HttpHost
[]::
new
);
RestClientBuilder
builder
=
RestClient
.
builder
(
hosts
);
RestClientBuilder
builder
=
RestClient
.
builder
(
hosts
);
...
@@ -71,13 +71,13 @@ class RestClientConfigurations {
...
@@ -71,13 +71,13 @@ class RestClientConfigurations {
@Bean
@Bean
@ConditionalOnMissingBean
@ConditionalOnMissingBean
RestHighLevelClient
restHighLevelClient
(
RestClientBuilder
restClientBuilder
)
{
public
RestHighLevelClient
restHighLevelClient
(
RestClientBuilder
restClientBuilder
)
{
return
new
RestHighLevelClient
(
restClientBuilder
);
return
new
RestHighLevelClient
(
restClientBuilder
);
}
}
@Bean
@Bean
@ConditionalOnMissingBean
@ConditionalOnMissingBean
RestClient
restClient
(
RestClientBuilder
builder
,
ObjectProvider
<
RestHighLevelClient
>
restHighLevelClient
)
{
public
RestClient
restClient
(
RestClientBuilder
builder
,
ObjectProvider
<
RestHighLevelClient
>
restHighLevelClient
)
{
RestHighLevelClient
client
=
restHighLevelClient
.
getIfUnique
();
RestHighLevelClient
client
=
restHighLevelClient
.
getIfUnique
();
if
(
client
!=
null
)
{
if
(
client
!=
null
)
{
return
client
.
getLowLevelClient
();
return
client
.
getLowLevelClient
();
...
@@ -92,7 +92,7 @@ class RestClientConfigurations {
...
@@ -92,7 +92,7 @@ class RestClientConfigurations {
@Bean
@Bean
@ConditionalOnMissingBean
@ConditionalOnMissingBean
RestClient
restClient
(
RestClientBuilder
builder
)
{
public
RestClient
restClient
(
RestClientBuilder
builder
)
{
return
builder
.
build
();
return
builder
.
build
();
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment