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
1d9fa839
Commit
1d9fa839
authored
Apr 30, 2017
by
Eddú Meléndez
Committed by
Stephane Nicoll
May 03, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace lambdas with method references
Closes gh-9049
parent
d46591f1
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 @
1d9fa839
...
@@ -108,7 +108,7 @@ public class FlywayAutoConfiguration {
...
@@ -108,7 +108,7 @@ public class FlywayAutoConfiguration {
this
.
flywayDataSource
=
flywayDataSource
.
getIfAvailable
();
this
.
flywayDataSource
=
flywayDataSource
.
getIfAvailable
();
this
.
migrationStrategy
=
migrationStrategy
.
getIfAvailable
();
this
.
migrationStrategy
=
migrationStrategy
.
getIfAvailable
();
this
.
flywayCallbacks
=
flywayCallbacks
this
.
flywayCallbacks
=
flywayCallbacks
.
getIfAvailable
(
()
->
Collections
.
emptyList
()
);
.
getIfAvailable
(
Collections:
:
emptyList
);
}
}
@PostConstruct
@PostConstruct
...
...
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/reactor/core/ReactorCoreAutoConfiguration.java
View file @
1d9fa839
...
@@ -30,6 +30,7 @@ import org.springframework.context.annotation.Configuration;
...
@@ -30,6 +30,7 @@ import org.springframework.context.annotation.Configuration;
* {@link EnableAutoConfiguration Auto-configuration} for Reactor Core.
* {@link EnableAutoConfiguration Auto-configuration} for Reactor Core.
*
*
* @author Brian Clozel
* @author Brian Clozel
* @author Eddú Meléndez
*/
*/
@Configuration
@Configuration
@ConditionalOnClass
({
Mono
.
class
,
Flux
.
class
})
@ConditionalOnClass
({
Mono
.
class
,
Flux
.
class
})
...
@@ -39,7 +40,7 @@ public class ReactorCoreAutoConfiguration {
...
@@ -39,7 +40,7 @@ public class ReactorCoreAutoConfiguration {
@Autowired
@Autowired
protected
void
initialize
(
ReactorCoreProperties
properties
)
{
protected
void
initialize
(
ReactorCoreProperties
properties
)
{
if
(
properties
.
getStacktraceMode
().
isEnabled
())
{
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 @
1d9fa839
...
@@ -138,7 +138,7 @@ public class ThymeleafAutoConfiguration {
...
@@ -138,7 +138,7 @@ public class ThymeleafAutoConfiguration {
ObjectProvider
<
Collection
<
IDialect
>>
dialectsProvider
)
{
ObjectProvider
<
Collection
<
IDialect
>>
dialectsProvider
)
{
this
.
templateResolvers
=
templateResolvers
;
this
.
templateResolvers
=
templateResolvers
;
this
.
dialects
=
dialectsProvider
this
.
dialects
=
dialectsProvider
.
getIfAvailable
(
()
->
Collections
.
emptyList
()
);
.
getIfAvailable
(
Collections:
:
emptyList
);
}
}
@Bean
@Bean
...
@@ -222,7 +222,7 @@ public class ThymeleafAutoConfiguration {
...
@@ -222,7 +222,7 @@ public class ThymeleafAutoConfiguration {
ObjectProvider
<
Collection
<
IDialect
>>
dialectsProvider
)
{
ObjectProvider
<
Collection
<
IDialect
>>
dialectsProvider
)
{
this
.
templateResolvers
=
templateResolvers
;
this
.
templateResolvers
=
templateResolvers
;
this
.
dialects
=
dialectsProvider
this
.
dialects
=
dialectsProvider
.
getIfAvailable
(
()
->
Collections
.
emptyList
()
);
.
getIfAvailable
(
Collections:
:
emptyList
);
}
}
@Bean
@Bean
...
...
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/reactive/WebFluxAutoConfiguration.java
View file @
1d9fa839
...
@@ -73,6 +73,7 @@ import org.springframework.web.reactive.result.view.ViewResolver;
...
@@ -73,6 +73,7 @@ import org.springframework.web.reactive.result.view.ViewResolver;
* @author Stephane Nicoll
* @author Stephane Nicoll
* @author Andy Wilkinson
* @author Andy Wilkinson
* @author Phillip Webb
* @author Phillip Webb
* @author Eddú Meléndez
* @since 2.0.0
* @since 2.0.0
*/
*/
@Configuration
@Configuration
...
@@ -157,7 +158,7 @@ public class WebFluxAutoConfiguration {
...
@@ -157,7 +158,7 @@ public class WebFluxAutoConfiguration {
public
void
configureViewResolvers
(
ViewResolverRegistry
registry
)
{
public
void
configureViewResolvers
(
ViewResolverRegistry
registry
)
{
if
(
this
.
viewResolvers
!=
null
)
{
if
(
this
.
viewResolvers
!=
null
)
{
AnnotationAwareOrderComparator
.
sort
(
this
.
viewResolvers
);
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 @
1d9fa839
...
@@ -27,6 +27,7 @@ import org.springframework.core.env.PropertySource;
...
@@ -27,6 +27,7 @@ import org.springframework.core.env.PropertySource;
*
*
* @author Phillip Webb
* @author Phillip Webb
* @author Madhura Bhave
* @author Madhura Bhave
* @author Eddú Meléndez
*/
*/
public
abstract
class
AbstractPropertyMapperTests
{
public
abstract
class
AbstractPropertyMapperTests
{
...
@@ -52,7 +53,7 @@ public abstract class AbstractPropertyMapperTests {
...
@@ -52,7 +53,7 @@ public abstract class AbstractPropertyMapperTests {
PropertySource
<?>
propertySource
=
new
MapPropertySource
(
"test"
,
PropertySource
<?>
propertySource
=
new
MapPropertySource
(
"test"
,
Collections
.
singletonMap
(
name
,
value
));
Collections
.
singletonMap
(
name
,
value
));
return
getMapper
().
map
(
propertySource
,
ConfigurationPropertyName
.
of
(
name
))
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 @
1d9fa839
...
@@ -37,6 +37,7 @@ import static org.assertj.core.api.Assertions.fail;
...
@@ -37,6 +37,7 @@ import static org.assertj.core.api.Assertions.fail;
*
*
* @author Phillip Webb
* @author Phillip Webb
* @author Madhura Bhave
* @author Madhura Bhave
* @author Eddú Meléndez
*/
*/
public
class
ConfigurationPropertyNameTests
{
public
class
ConfigurationPropertyNameTests
{
...
@@ -235,7 +236,7 @@ public class ConfigurationPropertyNameTests {
...
@@ -235,7 +236,7 @@ public class ConfigurationPropertyNameTests {
}
}
private
Iterator
<
String
>
streamElements
(
String
name
)
{
private
Iterator
<
String
>
streamElements
(
String
name
)
{
return
ConfigurationPropertyName
.
of
(
name
).
stream
().
map
(
(
e
)
->
e
.
toString
()
)
return
ConfigurationPropertyName
.
of
(
name
).
stream
().
map
(
Element:
:
toString
)
.
iterator
();
.
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