mirror of https://github.com/apache/openjpa.git
Overwrite the *correct* slot. We really need to move this aliasing system to a map at some point.
git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@454057 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
fb42b621b3
commit
43f5348782
|
@ -51,7 +51,7 @@ public class BrokerFactoryValue
|
|||
*/
|
||||
public static void addDefaultAlias(String alias, String cls) {
|
||||
if (_aliases.contains(alias)) {
|
||||
_aliases.set(_aliases.indexOf(alias), cls);
|
||||
_aliases.set(_aliases.indexOf(alias) + 1, cls);
|
||||
} else {
|
||||
_aliases.add(alias);
|
||||
_aliases.add(cls);
|
||||
|
|
Loading…
Reference in New Issue