struts-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lukaszlen...@apache.org
Subject struts git commit: WW-4643 Makes set unmodifiable
Date Sun, 12 Jun 2016 17:40:36 GMT
Repository: struts
Updated Branches:
  refs/heads/master b866e0e88 -> 7621c2bc9


WW-4643 Makes set unmodifiable


Project: http://git-wip-us.apache.org/repos/asf/struts/repo
Commit: http://git-wip-us.apache.org/repos/asf/struts/commit/7621c2bc
Tree: http://git-wip-us.apache.org/repos/asf/struts/tree/7621c2bc
Diff: http://git-wip-us.apache.org/repos/asf/struts/diff/7621c2bc

Branch: refs/heads/master
Commit: 7621c2bc92e46341caa245544e09d9d2a604f51c
Parents: b866e0e
Author: Lukasz Lenart <lukaszlenart@apache.org>
Authored: Sun Jun 12 19:40:27 2016 +0200
Committer: Lukasz Lenart <lukaszlenart@apache.org>
Committed: Sun Jun 12 19:40:27 2016 +0200

----------------------------------------------------------------------
 .../com/opensymphony/xwork2/config/entities/PackageConfig.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/struts/blob/7621c2bc/core/src/main/java/com/opensymphony/xwork2/config/entities/PackageConfig.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/com/opensymphony/xwork2/config/entities/PackageConfig.java
b/core/src/main/java/com/opensymphony/xwork2/config/entities/PackageConfig.java
index bb34018..95f6f66 100644
--- a/core/src/main/java/com/opensymphony/xwork2/config/entities/PackageConfig.java
+++ b/core/src/main/java/com/opensymphony/xwork2/config/entities/PackageConfig.java
@@ -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;


Mime
View raw message