OPENJPA-437. Reverted back to hard-reference ArrayList instead of a concurrent set, since the new logic only performs local mutation.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@616845 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Patrick Linskey 2008-01-30 19:03:48 +00:00
parent 0b4ce34920
commit badc4b924f
1 changed files with 1 additions and 2 deletions

View File

@ -280,8 +280,7 @@ public abstract class AbstractBrokerFactory
if (clss.isEmpty()) if (clss.isEmpty())
_pcClassNames = Collections.EMPTY_SET; _pcClassNames = Collections.EMPTY_SET;
else { else {
Collection c = new ConcurrentReferenceHashSet( Collection c = new ArrayList(clss.size());
ConcurrentReferenceHashSet.HARD);
for (Iterator itr = clss.iterator(); itr.hasNext();) { for (Iterator itr = clss.iterator(); itr.hasNext();) {
Class cls = (Class) itr.next(); Class cls = (Class) itr.next();
c.add(cls.getName()); c.add(cls.getName());