Use pattern variables
See gh-39259
This commit is contained in:
committed by
Phillip Webb
parent
fe38cb3b4a
commit
06265ee617
@@ -127,8 +127,7 @@ class PropertiesMigrationReporter {
|
||||
new PropertyMigration(match, metadata, determineReplacementMetadata(metadata), false));
|
||||
}
|
||||
// Prefix match for maps
|
||||
if (isMapType(metadata) && propertySource instanceof IterableConfigurationPropertySource) {
|
||||
IterableConfigurationPropertySource iterableSource = (IterableConfigurationPropertySource) propertySource;
|
||||
if (isMapType(metadata) && propertySource instanceof IterableConfigurationPropertySource iterableSource) {
|
||||
iterableSource.stream()
|
||||
.filter(metadataName::isAncestorOf)
|
||||
.map(propertySource::getConfigurationProperty)
|
||||
|
||||
Reference in New Issue
Block a user