Return an unmodifiable collection in getPrototypes() to prevent major damage
This commit is contained in:
parent
609a8700c9
commit
67e4f11fdb
1 changed files with 1 additions and 1 deletions
|
@ -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());
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue