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
dc363601
Commit
dc363601
authored
Feb 27, 2018
by
Andy Wilkinson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish
parent
9640881f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
7 deletions
+5
-7
ExposeExcludePropertyEndpointFilter.java
...nfigure/endpoint/ExposeExcludePropertyEndpointFilter.java
+1
-1
MessageSourceAutoConfigurationTests.java
...onfigure/context/MessageSourceAutoConfigurationTests.java
+1
-1
OriginTrackedYamlLoader.java
...org/springframework/boot/env/OriginTrackedYamlLoader.java
+1
-3
StringToEnumIgnoringCaseConverterFactoryTests.java
...onvert/StringToEnumIgnoringCaseConverterFactoryTests.java
+2
-2
No files found.
spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/endpoint/ExposeExcludePropertyEndpointFilter.java
View file @
dc363601
...
@@ -82,7 +82,7 @@ public class ExposeExcludePropertyEndpointFilter<E extends ExposableEndpoint<?>>
...
@@ -82,7 +82,7 @@ public class ExposeExcludePropertyEndpointFilter<E extends ExposableEndpoint<?>>
if
(
items
==
null
)
{
if
(
items
==
null
)
{
return
Collections
.
emptySet
();
return
Collections
.
emptySet
();
}
}
return
items
.
stream
().
map
(
item
->
item
.
toLowerCase
(
Locale
.
ENGLISH
))
return
items
.
stream
().
map
(
(
item
)
->
item
.
toLowerCase
(
Locale
.
ENGLISH
))
.
collect
(
Collectors
.
toCollection
(
HashSet:
:
new
));
.
collect
(
Collectors
.
toCollection
(
HashSet:
:
new
));
}
}
...
...
spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/context/MessageSourceAutoConfigurationTests.java
View file @
dc363601
...
@@ -98,7 +98,7 @@ public class MessageSourceAutoConfigurationTests {
...
@@ -98,7 +98,7 @@ public class MessageSourceAutoConfigurationTests {
private
ContextConsumer
<
AssertableApplicationContext
>
assertCache
(
long
expected
)
{
private
ContextConsumer
<
AssertableApplicationContext
>
assertCache
(
long
expected
)
{
return
(
context
)
->
{
return
(
context
)
->
{
assertThat
(
assertThat
(
context
).
hasSingleBean
(
MessageSource
.
class
)
);
assertThat
(
context
).
hasSingleBean
(
MessageSource
.
class
);
assertThat
(
new
DirectFieldAccessor
(
context
.
getBean
(
MessageSource
.
class
))
assertThat
(
new
DirectFieldAccessor
(
context
.
getBean
(
MessageSource
.
class
))
.
getPropertyValue
(
"cacheMillis"
)).
isEqualTo
(
expected
);
.
getPropertyValue
(
"cacheMillis"
)).
isEqualTo
(
expected
);
};
};
...
...
spring-boot-project/spring-boot/src/main/java/org/springframework/boot/env/OriginTrackedYamlLoader.java
View file @
dc363601
...
@@ -69,9 +69,7 @@ class OriginTrackedYamlLoader extends YamlProcessor {
...
@@ -69,9 +69,7 @@ class OriginTrackedYamlLoader extends YamlProcessor {
public
List
<
Map
<
String
,
Object
>>
load
()
{
public
List
<
Map
<
String
,
Object
>>
load
()
{
final
List
<
Map
<
String
,
Object
>>
result
=
new
ArrayList
<>();
final
List
<
Map
<
String
,
Object
>>
result
=
new
ArrayList
<>();
process
((
properties
,
map
)
->
{
process
((
properties
,
map
)
->
result
.
add
(
getFlattenedMap
(
map
)));
result
.
add
(
getFlattenedMap
(
map
));
});
return
result
;
return
result
;
}
}
...
...
spring-boot-project/spring-boot/src/test/java/org/springframework/boot/convert/StringToEnumIgnoringCaseConverterFactoryTests.java
View file @
dc363601
...
@@ -87,8 +87,8 @@ public class StringToEnumIgnoringCaseConverterFactoryTests {
...
@@ -87,8 +87,8 @@ public class StringToEnumIgnoringCaseConverterFactoryTests {
Locale
.
setDefault
(
new
Locale
(
"tr"
));
Locale
.
setDefault
(
new
Locale
(
"tr"
));
LocaleSensitiveEnum
result
=
this
.
conversionService
.
convert
(
LocaleSensitiveEnum
result
=
this
.
conversionService
.
convert
(
"accept-case-insensitive-properties"
,
LocaleSensitiveEnum
.
class
);
"accept-case-insensitive-properties"
,
LocaleSensitiveEnum
.
class
);
assertThat
(
result
assertThat
(
result
)
.
equals
(
LocaleSensitiveEnum
.
ACCEPT_CASE_INSENSITIVE_PROPERTIES
)
);
.
isEqualTo
(
LocaleSensitiveEnum
.
ACCEPT_CASE_INSENSITIVE_PROPERTIES
);
}
}
finally
{
finally
{
Locale
.
setDefault
(
defaultLocale
);
Locale
.
setDefault
(
defaultLocale
);
...
...
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