mirror of
https://github.com/apache/struts.git
synced 2026-08-05 14:47:09 +00:00
WW-4643 Makes set unmodifiable
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user