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