Make sure _all_ access to TypeManager.prototype field is synchronized.

This commit is contained in:
hns 2008-07-21 23:02:22 +00:00
parent 41a422fd01
commit 51ba3dc963

View file

@ -263,7 +263,7 @@ public final class TypeManager {
*
* @return a collection containing the prototypes
*/
public Collection getPrototypes() {
public synchronized Collection getPrototypes() {
return Collections.unmodifiableCollection(prototypes.values());
}