Skip to content

Commit dc36360

Browse files
committed
Polish
1 parent 9640881 commit dc36360

File tree

4 files changed

+5
-7
lines changed

4 files changed

+5
-7
lines changed

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/endpoint/ExposeExcludePropertyEndpointFilter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ private Set<String> asSet(Collection<String> items) {
8282
if (items == null) {
8383
return Collections.emptySet();
8484
}
85-
return items.stream().map(item -> item.toLowerCase(Locale.ENGLISH))
85+
return items.stream().map((item) -> item.toLowerCase(Locale.ENGLISH))
8686
.collect(Collectors.toCollection(HashSet::new));
8787
}
8888

spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/context/MessageSourceAutoConfigurationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public void testCacheDurationWithUnit() {
9898

9999
private ContextConsumer<AssertableApplicationContext> assertCache(long expected) {
100100
return (context) -> {
101-
assertThat(assertThat(context).hasSingleBean(MessageSource.class));
101+
assertThat(context).hasSingleBean(MessageSource.class);
102102
assertThat(new DirectFieldAccessor(context.getBean(MessageSource.class))
103103
.getPropertyValue("cacheMillis")).isEqualTo(expected);
104104
};

spring-boot-project/spring-boot/src/main/java/org/springframework/boot/env/OriginTrackedYamlLoader.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,7 @@ protected Yaml createYaml() {
6969

7070
public List<Map<String, Object>> load() {
7171
final List<Map<String, Object>> result = new ArrayList<>();
72-
process((properties, map) -> {
73-
result.add(getFlattenedMap(map));
74-
});
72+
process((properties, map) -> result.add(getFlattenedMap(map)));
7573
return result;
7674
}
7775

spring-boot-project/spring-boot/src/test/java/org/springframework/boot/convert/StringToEnumIgnoringCaseConverterFactoryTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ public void convertFromStringToEnumWhenUsingNonEnglishLocaleShouldConvertValue()
8787
Locale.setDefault(new Locale("tr"));
8888
LocaleSensitiveEnum result = this.conversionService.convert(
8989
"accept-case-insensitive-properties", LocaleSensitiveEnum.class);
90-
assertThat(result
91-
.equals(LocaleSensitiveEnum.ACCEPT_CASE_INSENSITIVE_PROPERTIES));
90+
assertThat(result)
91+
.isEqualTo(LocaleSensitiveEnum.ACCEPT_CASE_INSENSITIVE_PROPERTIES);
9292
}
9393
finally {
9494
Locale.setDefault(defaultLocale);

0 commit comments

Comments
 (0)