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
91ac9440
Commit
91ac9440
authored
May 03, 2017
by
Stephane Nicoll
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #9049 from eddumelendez:polish-lambdas
* pr/9049: Replace lambdas with method references
parents
d46591f1
1d9fa839
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
11 additions
and
7 deletions
+11
-7
FlywayAutoConfiguration.java
...rk/boot/autoconfigure/flyway/FlywayAutoConfiguration.java
+1
-1
ReactorCoreAutoConfiguration.java
...oconfigure/reactor/core/ReactorCoreAutoConfiguration.java
+2
-1
ThymeleafAutoConfiguration.java
...t/autoconfigure/thymeleaf/ThymeleafAutoConfiguration.java
+2
-2
WebFluxAutoConfiguration.java
.../autoconfigure/web/reactive/WebFluxAutoConfiguration.java
+2
-1
AbstractPropertyMapperTests.java
...ontext/properties/source/AbstractPropertyMapperTests.java
+2
-1
ConfigurationPropertyNameTests.java
...ext/properties/source/ConfigurationPropertyNameTests.java
+2
-1
No files found.
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/flyway/FlywayAutoConfiguration.java
View file @
91ac9440
...
...
@@ -108,7 +108,7 @@ public class FlywayAutoConfiguration {
this
.
flywayDataSource
=
flywayDataSource
.
getIfAvailable
();
this
.
migrationStrategy
=
migrationStrategy
.
getIfAvailable
();
this
.
flywayCallbacks
=
flywayCallbacks
.
getIfAvailable
(
()
->
Collections
.
emptyList
()
);
.
getIfAvailable
(
Collections:
:
emptyList
);
}
@PostConstruct
...
...
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/reactor/core/ReactorCoreAutoConfiguration.java
View file @
91ac9440
...
...
@@ -30,6 +30,7 @@ import org.springframework.context.annotation.Configuration;
* {@link EnableAutoConfiguration Auto-configuration} for Reactor Core.
*
* @author Brian Clozel
* @author Eddú Meléndez
*/
@Configuration
@ConditionalOnClass
({
Mono
.
class
,
Flux
.
class
})
...
...
@@ -39,7 +40,7 @@ public class ReactorCoreAutoConfiguration {
@Autowired
protected
void
initialize
(
ReactorCoreProperties
properties
)
{
if
(
properties
.
getStacktraceMode
().
isEnabled
())
{
Hooks
.
onOperator
(
h
->
h
.
operatorStacktrace
()
);
Hooks
.
onOperator
(
Hooks
.
OperatorHook
::
operatorStacktrace
);
}
}
...
...
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/thymeleaf/ThymeleafAutoConfiguration.java
View file @
91ac9440
...
...
@@ -138,7 +138,7 @@ public class ThymeleafAutoConfiguration {
ObjectProvider
<
Collection
<
IDialect
>>
dialectsProvider
)
{
this
.
templateResolvers
=
templateResolvers
;
this
.
dialects
=
dialectsProvider
.
getIfAvailable
(
()
->
Collections
.
emptyList
()
);
.
getIfAvailable
(
Collections:
:
emptyList
);
}
@Bean
...
...
@@ -222,7 +222,7 @@ public class ThymeleafAutoConfiguration {
ObjectProvider
<
Collection
<
IDialect
>>
dialectsProvider
)
{
this
.
templateResolvers
=
templateResolvers
;
this
.
dialects
=
dialectsProvider
.
getIfAvailable
(
()
->
Collections
.
emptyList
()
);
.
getIfAvailable
(
Collections:
:
emptyList
);
}
@Bean
...
...
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/reactive/WebFluxAutoConfiguration.java
View file @
91ac9440
...
...
@@ -73,6 +73,7 @@ import org.springframework.web.reactive.result.view.ViewResolver;
* @author Stephane Nicoll
* @author Andy Wilkinson
* @author Phillip Webb
* @author Eddú Meléndez
* @since 2.0.0
*/
@Configuration
...
...
@@ -157,7 +158,7 @@ public class WebFluxAutoConfiguration {
public
void
configureViewResolvers
(
ViewResolverRegistry
registry
)
{
if
(
this
.
viewResolvers
!=
null
)
{
AnnotationAwareOrderComparator
.
sort
(
this
.
viewResolvers
);
this
.
viewResolvers
.
forEach
(
re
solver
->
registry
.
viewResolver
(
resolver
)
);
this
.
viewResolvers
.
forEach
(
re
gistry:
:
viewResolver
);
}
}
...
...
spring-boot/src/test/java/org/springframework/boot/context/properties/source/AbstractPropertyMapperTests.java
View file @
91ac9440
...
...
@@ -27,6 +27,7 @@ import org.springframework.core.env.PropertySource;
*
* @author Phillip Webb
* @author Madhura Bhave
* @author Eddú Meléndez
*/
public
abstract
class
AbstractPropertyMapperTests
{
...
...
@@ -52,7 +53,7 @@ public abstract class AbstractPropertyMapperTests {
PropertySource
<?>
propertySource
=
new
MapPropertySource
(
"test"
,
Collections
.
singletonMap
(
name
,
value
));
return
getMapper
().
map
(
propertySource
,
ConfigurationPropertyName
.
of
(
name
))
.
stream
().
map
(
(
mapping
)
->
mapping
.
getPropertySourceName
()
).
iterator
();
.
stream
().
map
(
PropertyMapping:
:
getPropertySourceName
).
iterator
();
}
}
spring-boot/src/test/java/org/springframework/boot/context/properties/source/ConfigurationPropertyNameTests.java
View file @
91ac9440
...
...
@@ -37,6 +37,7 @@ import static org.assertj.core.api.Assertions.fail;
*
* @author Phillip Webb
* @author Madhura Bhave
* @author Eddú Meléndez
*/
public
class
ConfigurationPropertyNameTests
{
...
...
@@ -235,7 +236,7 @@ public class ConfigurationPropertyNameTests {
}
private
Iterator
<
String
>
streamElements
(
String
name
)
{
return
ConfigurationPropertyName
.
of
(
name
).
stream
().
map
(
(
e
)
->
e
.
toString
()
)
return
ConfigurationPropertyName
.
of
(
name
).
stream
().
map
(
Element:
:
toString
)
.
iterator
();
}
...
...
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