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
89fdc856
Commit
89fdc856
authored
May 09, 2019
by
Andy Wilkinson
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #16738 from Johnny Lim
* gh-16738: Consistent use of PropertyMapper::asInt Closes gh-16738
parents
a784697d
a56867da
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
RestClientAutoConfiguration.java
...igure/elasticsearch/rest/RestClientAutoConfiguration.java
+3
-3
No files found.
spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/elasticsearch/rest/RestClientAutoConfiguration.java
View file @
89fdc856
...
@@ -72,10 +72,10 @@ public class RestClientAutoConfiguration {
...
@@ -72,10 +72,10 @@ public class RestClientAutoConfiguration {
});
});
builder
.
setRequestConfigCallback
((
requestConfigBuilder
)
->
{
builder
.
setRequestConfigCallback
((
requestConfigBuilder
)
->
{
map
.
from
(
properties:
:
getConnectionTimeout
).
whenNonNull
()
map
.
from
(
properties:
:
getConnectionTimeout
).
whenNonNull
()
.
as
(
Duration:
:
toMillis
).
asInt
(
Math:
:
toIntExact
)
.
as
Int
(
Duration:
:
toMillis
)
.
to
(
requestConfigBuilder:
:
setConnectTimeout
);
.
to
(
requestConfigBuilder:
:
setConnectTimeout
);
map
.
from
(
properties:
:
getReadTimeout
).
whenNonNull
().
as
(
Duration:
:
toMillis
)
map
.
from
(
properties:
:
getReadTimeout
).
whenNonNull
().
as
Int
(
Duration:
:
toMillis
)
.
asInt
(
Math:
:
toIntExact
).
to
(
requestConfigBuilder:
:
setSocketTimeout
);
.
to
(
requestConfigBuilder:
:
setSocketTimeout
);
return
requestConfigBuilder
;
return
requestConfigBuilder
;
});
});
builderCustomizers
.
orderedStream
()
builderCustomizers
.
orderedStream
()
...
...
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