Skip to content

Commit df779b4

Browse files
committed
Merge pull request spring-projects#14049 from izeye:polish-20180813
* pr/14049: Polish
2 parents 895d092 + b4abccc commit df779b4

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

Diff for: spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/liquibase/LiquibaseEndpointTests.java

-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ public void connectionAutoCommitPropertyIsReset() {
7979

8080
private boolean getAutoCommit(DataSource dataSource) throws SQLException {
8181
try (Connection connection = dataSource.getConnection()) {
82-
System.out.println(connection);
8382
return connection.getAutoCommit();
8483
}
8584
}

Diff for: spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/config/ConfigFileApplicationListener.java

+3-6
Original file line numberDiff line numberDiff line change
@@ -685,12 +685,9 @@ private Set<String> asResolvedSet(String value, String fallback) {
685685
* @param processedProfiles the processed profiles
686686
*/
687687
private void resetEnvironmentProfiles(List<Profile> processedProfiles) {
688-
String[] names = processedProfiles.stream().filter((profile) -> {
689-
if (profile != null && !profile.isDefaultProfile()) {
690-
return true;
691-
}
692-
return false;
693-
}).map(Profile::getName).toArray(String[]::new);
688+
String[] names = processedProfiles.stream()
689+
.filter((profile) -> profile != null && !profile.isDefaultProfile())
690+
.map(Profile::getName).toArray(String[]::new);
694691
this.environment.setActiveProfiles(names);
695692
}
696693

Diff for: spring-boot-project/spring-boot/src/test/java/org/springframework/boot/context/properties/bind/MapBinderTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@ public void bindToMapWithDefaultConstructor() {
616616
}
617617

618618
@Test
619-
public void bindToImmutableMapShouldReturnPopulatedCollection() {
619+
public void bindToImmutableMapShouldReturnPopulatedMap() {
620620
MockConfigurationPropertySource source = new MockConfigurationPropertySource();
621621
source.put("foo.values.c", "d");
622622
source.put("foo.values.e", "f");

0 commit comments

Comments
 (0)