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:
Patrick Linskey 2006-10-08 01:03:25 +00:00
parent fb42b621b3
commit 43f5348782
1 changed files with 1 additions and 1 deletions

View File

@ -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);