Polishing

This commit is contained in:
Juergen Hoeller
2017-11-21 13:42:57 +01:00
parent 08c95fbcb3
commit 5843173567
3 changed files with 35 additions and 46 deletions

View File

@@ -231,11 +231,7 @@ class ConfigurationClassParser {
// Explicit bean definition found, probably replacing an import.
// Let's remove the old one and go with the new one.
this.configurationClasses.remove(configClass);
for (Iterator<ConfigurationClass> it = this.knownSuperclasses.values().iterator(); it.hasNext();) {
if (configClass.equals(it.next())) {
it.remove();
}
}
this.knownSuperclasses.values().removeIf(configClass::equals);
}
}