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
4857b45e
Commit
4857b45e
authored
Oct 23, 2018
by
dreis2211
Committed by
Stephane Nicoll
Oct 24, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace lambdas with method reference or call
Closes gh-14937
parent
eb61b2bb
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
6 deletions
+5
-6
ConditionsReportEndpoint.java
...ate/autoconfigure/condition/ConditionsReportEndpoint.java
+1
-2
EndpointDiscoverer.java
.../boot/actuate/endpoint/annotation/EndpointDiscoverer.java
+2
-1
PathMapper.java
...springframework/boot/actuate/endpoint/web/PathMapper.java
+1
-1
CassandraAutoConfiguration.java
...t/autoconfigure/cassandra/CassandraAutoConfiguration.java
+1
-2
No files found.
spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/condition/ConditionsReportEndpoint.java
View file @
4857b45e
...
...
@@ -123,8 +123,7 @@ public class ConditionsReportEndpoint {
this
.
negativeMatches
=
new
LinkedHashMap
<>();
this
.
exclusions
=
report
.
getExclusions
();
this
.
unconditionalClasses
=
report
.
getUnconditionalClasses
();
report
.
getConditionAndOutcomesBySource
().
forEach
(
(
source
,
conditionAndOutcomes
)
->
add
(
source
,
conditionAndOutcomes
));
report
.
getConditionAndOutcomesBySource
().
forEach
(
this
::
add
);
this
.
parentId
=
(
context
.
getParent
()
!=
null
)
?
context
.
getParent
().
getId
()
:
null
;
}
...
...
spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/annotation/EndpointDiscoverer.java
View file @
4857b45e
...
...
@@ -26,6 +26,7 @@ import java.util.Map;
import
java.util.Objects
;
import
java.util.Set
;
import
java.util.concurrent.ConcurrentHashMap
;
import
java.util.function.Function
;
import
java.util.function.Supplier
;
import
java.util.stream.Collectors
;
...
...
@@ -147,7 +148,7 @@ public abstract class EndpointDiscoverer<E extends ExposableEndpoint<O>, O exten
private
void
addExtensionBeans
(
Collection
<
EndpointBean
>
endpointBeans
)
{
Map
<
EndpointId
,
EndpointBean
>
byId
=
endpointBeans
.
stream
()
.
collect
(
Collectors
.
toMap
(
EndpointBean:
:
getId
,
(
bean
)
->
bean
));
.
collect
(
Collectors
.
toMap
(
EndpointBean:
:
getId
,
Function
.
identity
()
));
String
[]
beanNames
=
BeanFactoryUtils
.
beanNamesForAnnotationIncludingAncestors
(
this
.
applicationContext
,
EndpointExtension
.
class
);
for
(
String
beanName
:
beanNames
)
{
...
...
spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/web/PathMapper.java
View file @
4857b45e
...
...
@@ -49,7 +49,7 @@ public interface PathMapper {
*/
@Deprecated
static
PathMapper
useEndpointId
()
{
return
(
id
)
->
id
.
toString
()
;
return
EndpointId:
:
toString
;
}
/**
...
...
spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/cassandra/CassandraAutoConfiguration.java
View file @
4857b45e
...
...
@@ -80,8 +80,7 @@ public class CassandraAutoConfiguration {
map
.
from
(
this
::
getSocketOptions
).
to
(
builder:
:
withSocketOptions
);
map
.
from
(
properties:
:
isSsl
).
whenTrue
().
toCall
(
builder:
:
withSSL
);
map
.
from
(
this
::
getPoolingOptions
).
to
(
builder:
:
withPoolingOptions
);
map
.
from
(
properties:
:
getContactPoints
)
.
as
((
list
)
->
StringUtils
.
toStringArray
(
list
))
map
.
from
(
properties:
:
getContactPoints
).
as
(
StringUtils:
:
toStringArray
)
.
to
(
builder:
:
addContactPoints
);
map
.
from
(
properties:
:
isJmxEnabled
).
whenFalse
()
.
toCall
(
builder:
:
withoutJMXReporting
);
...
...
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