optimized OrderComparator usage
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2008 the original author or authors.
|
||||
* Copyright 2002-2009 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -522,8 +522,8 @@ public abstract class AbstractBeanFactory extends FactoryBeanRegistrySupport imp
|
||||
aliases.add(fullBeanName);
|
||||
}
|
||||
String[] retrievedAliases = super.getAliases(beanName);
|
||||
for (String retrievedAliase : retrievedAliases) {
|
||||
String alias = (factoryPrefix ? FACTORY_BEAN_PREFIX : "") + retrievedAliase;
|
||||
for (String retrievedAlias : retrievedAliases) {
|
||||
String alias = (factoryPrefix ? FACTORY_BEAN_PREFIX : "") + retrievedAlias;
|
||||
if (!alias.equals(name)) {
|
||||
aliases.add(alias);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user