From badc4b924fb4f3632b2d74439b9ee0b5904ef962 Mon Sep 17 00:00:00 2001 From: Patrick Linskey Date: Wed, 30 Jan 2008 19:03:48 +0000 Subject: [PATCH] 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 --- .../java/org/apache/openjpa/kernel/AbstractBrokerFactory.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/AbstractBrokerFactory.java b/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/AbstractBrokerFactory.java index 74f3c92d5..31472930d 100644 --- a/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/AbstractBrokerFactory.java +++ b/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/AbstractBrokerFactory.java @@ -280,8 +280,7 @@ public abstract class AbstractBrokerFactory if (clss.isEmpty()) _pcClassNames = Collections.EMPTY_SET; else { - Collection c = new ConcurrentReferenceHashSet( - ConcurrentReferenceHashSet.HARD); + Collection c = new ArrayList(clss.size()); for (Iterator itr = clss.iterator(); itr.hasNext();) { Class cls = (Class) itr.next(); c.add(cls.getName());