SimpleAliasRegistry.hasAlias properly resolves multiple chained aliases
Issue: SPR-17191
(cherry picked from commit 2ac23badee)
This commit is contained in:
@@ -86,7 +86,9 @@ public class SimpleAliasRegistry implements AliasRegistry {
|
||||
String registeredName = entry.getValue();
|
||||
if (registeredName.equals(name)) {
|
||||
String registeredAlias = entry.getKey();
|
||||
return (registeredAlias.equals(alias) || hasAlias(registeredAlias, alias));
|
||||
if (registeredAlias.equals(alias) || hasAlias(registeredAlias, alias)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user