You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@struts.apache.org by lu...@apache.org on 2011/12/20 21:17:49 UTC

svn commit: r1221473 - /struts/struts2/branches/STRUTS_2_3_X/xwork-core/src/main/java/com/opensymphony/xwork2/config/entities/ActionConfig.java

Author: lukaszlenart
Date: Tue Dec 20 20:17:49 2011
New Revision: 1221473

URL: http://svn.apache.org/viewvc?rev=1221473&view=rev
Log:
WW-3729 - Improves Strict DMI mode

Modified:
    struts/struts2/branches/STRUTS_2_3_X/xwork-core/src/main/java/com/opensymphony/xwork2/config/entities/ActionConfig.java

Modified: struts/struts2/branches/STRUTS_2_3_X/xwork-core/src/main/java/com/opensymphony/xwork2/config/entities/ActionConfig.java
URL: http://svn.apache.org/viewvc/struts/struts2/branches/STRUTS_2_3_X/xwork-core/src/main/java/com/opensymphony/xwork2/config/entities/ActionConfig.java?rev=1221473&r1=1221472&r2=1221473&view=diff
==============================================================================
--- struts/struts2/branches/STRUTS_2_3_X/xwork-core/src/main/java/com/opensymphony/xwork2/config/entities/ActionConfig.java (original)
+++ struts/struts2/branches/STRUTS_2_3_X/xwork-core/src/main/java/com/opensymphony/xwork2/config/entities/ActionConfig.java Tue Dec 20 20:17:49 2011
@@ -17,11 +17,17 @@ package com.opensymphony.xwork2.config.e
 
 import com.opensymphony.xwork2.util.location.Located;
 import com.opensymphony.xwork2.util.location.Location;
+import org.apache.commons.lang.StringUtils;
 
 import java.io.Serializable;
-import java.util.*;
-
-import org.apache.commons.lang.StringUtils;
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.HashSet;
+import java.util.LinkedHashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.Set;
 
 
 /**
@@ -218,6 +224,7 @@ public class ActionConfig extends Locate
 
         public Builder(ActionConfig toClone) {
             target = new ActionConfig(toClone);
+            addAllowedMethod(toClone.getAllowedMethods());
         }
 
         public Builder(String packageName, String name, String className) {