struts-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lukaszlen...@apache.org
Subject [3/7] struts git commit: Cleans up method name
Date Wed, 04 May 2016 07:20:52 GMT
Cleans up method name


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

Branch: refs/heads/master
Commit: 6d7ac40dcede1793a4534a3dc249fd562d495e8c
Parents: 9ac863b
Author: Lukasz Lenart <lukaszlenart@apache.org>
Authored: Fri Apr 29 08:40:03 2016 +0200
Committer: Lukasz Lenart <lukaszlenart@apache.org>
Committed: Wed May 4 09:16:44 2016 +0200

----------------------------------------------------------------------
 .../src/main/java/org/apache/struts2/rest/RestActionMapper.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/struts/blob/6d7ac40d/plugins/rest/src/main/java/org/apache/struts2/rest/RestActionMapper.java
----------------------------------------------------------------------
diff --git a/plugins/rest/src/main/java/org/apache/struts2/rest/RestActionMapper.java b/plugins/rest/src/main/java/org/apache/struts2/rest/RestActionMapper.java
index f1fc41a..678a6f3 100644
--- a/plugins/rest/src/main/java/org/apache/struts2/rest/RestActionMapper.java
+++ b/plugins/rest/src/main/java/org/apache/struts2/rest/RestActionMapper.java
@@ -320,7 +320,7 @@ public class RestActionMapper extends DefaultActionMapper {
 
             mapping.setName(actionName);
             if (allowDynamicMethodCalls) {
-                mapping.setMethod(actionMethod);
+                mapping.setMethod(cleanupActionName(actionMethod));
             } else {
                 mapping.setMethod(null);
             }


Mime
View raw message