Return an unmodifiable collection in getPrototypes() to prevent major damage

This commit is contained in:
hns 2004-01-21 16:53:06 +00:00
parent 609a8700c9
commit 67e4f11fdb

View file

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