Browse Source

Merge branch '2.0.x'

pull/14049/merge
Stephane Nicoll 8 years ago
parent
commit
d0f272960e
  1. 1
      spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/liquibase/LiquibaseEndpointTests.java
  2. 9
      spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/config/ConfigFileApplicationListener.java
  3. 2
      spring-boot-project/spring-boot/src/test/java/org/springframework/boot/context/properties/bind/MapBinderTests.java

1
spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/liquibase/LiquibaseEndpointTests.java

@ -79,7 +79,6 @@ public class LiquibaseEndpointTests { @@ -79,7 +79,6 @@ public class LiquibaseEndpointTests {
private boolean getAutoCommit(DataSource dataSource) throws SQLException {
try (Connection connection = dataSource.getConnection()) {
System.out.println(connection);
return connection.getAutoCommit();
}
}

9
spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/config/ConfigFileApplicationListener.java

@ -681,12 +681,9 @@ public class ConfigFileApplicationListener @@ -681,12 +681,9 @@ public class ConfigFileApplicationListener
* @param processedProfiles the processed profiles
*/
private void resetEnvironmentProfiles(List<Profile> processedProfiles) {
String[] names = processedProfiles.stream().filter((profile) -> {
if (profile != null && !profile.isDefaultProfile()) {
return true;
}
return false;
}).map(Profile::getName).toArray(String[]::new);
String[] names = processedProfiles.stream()
.filter((profile) -> profile != null && !profile.isDefaultProfile())
.map(Profile::getName).toArray(String[]::new);
this.environment.setActiveProfiles(names);
}

2
spring-boot-project/spring-boot/src/test/java/org/springframework/boot/context/properties/bind/MapBinderTests.java

@ -616,7 +616,7 @@ public class MapBinderTests { @@ -616,7 +616,7 @@ public class MapBinderTests {
}
@Test
public void bindToImmutableMapShouldReturnPopulatedCollection() {
public void bindToImmutableMapShouldReturnPopulatedMap() {
MockConfigurationPropertySource source = new MockConfigurationPropertySource();
source.put("foo.values.c", "d");
source.put("foo.values.e", "f");

Loading…
Cancel
Save