WW-4643 Makes set unmodifiable

This commit is contained in:
Lukasz Lenart
2016-06-12 19:40:27 +02:00
parent b866e0e880
commit 7621c2bc92
@@ -351,7 +351,7 @@ public class PackageConfig extends Located implements Comparable, Serializable,
*
* @return a Set of method names allowed to be executed if strict method invocation is enabled
*/
public Set<String> getGlobalAllowedMethods() { return globalAllowedMethods; }
public Set<String> getGlobalAllowedMethods() { return Collections.unmodifiableSet(globalAllowedMethods); }
public boolean isStrictMethodInvocation() {
return strictMethodInvocation;