This commit is contained in:
Phillip Webb
2018-01-26 11:38:04 -08:00
parent 62d9d0fd29
commit b234501af3
38 changed files with 142 additions and 134 deletions

View File

@@ -70,8 +70,8 @@ class PropertiesMigrationReporter {
return report;
}
properties.forEach((name, candidates) -> {
PropertySource<?> propertySource = mapPropertiesWithReplacement(report,
name, candidates);
PropertySource<?> propertySource = mapPropertiesWithReplacement(report, name,
candidates);
if (propertySource != null) {
this.environment.getPropertySources().addBefore(name, propertySource);
}
@@ -84,8 +84,8 @@ class PropertiesMigrationReporter {
List<PropertyMigration> properties) {
List<PropertyMigration> renamed = new ArrayList<>();
List<PropertyMigration> unsupported = new ArrayList<>();
properties.forEach((property) ->
(isRenamed(property) ? renamed : unsupported).add(property));
properties.forEach((property) -> (isRenamed(property) ? renamed : unsupported)
.add(property));
report.add(name, renamed, unsupported);
if (renamed.isEmpty()) {
return null;
@@ -133,7 +133,7 @@ class PropertiesMigrationReporter {
List<ConfigurationMetadataProperty> candidates = this.allProperties.values()
.stream().filter(filter).collect(Collectors.toList());
getPropertySourcesAsMap().forEach((name, source) -> {
candidates.forEach(metadata -> {
candidates.forEach((metadata) -> {
ConfigurationProperty configurationProperty = source
.getConfigurationProperty(
ConfigurationPropertyName.of(metadata.getId()));