You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@struts.apache.org by sd...@apache.org on 2017/04/17 15:19:49 UTC

[2/6] struts-examples git commit: removed unnecessary setter

removed unnecessary setter


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

Branch: refs/heads/master
Commit: 47ad79f1736e26075fd06de551ef3c369ef20977
Parents: 06c4ded
Author: Stefaan Dutry <st...@gmail.com>
Authored: Mon Apr 17 15:25:24 2017 +0200
Committer: Stefaan Dutry <st...@gmail.com>
Committed: Mon Apr 17 15:25:24 2017 +0200

----------------------------------------------------------------------
 .../org/apache/struts/helloworld/action/HelloWorldAction.java  | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/struts-examples/blob/47ad79f1/helloworld/src/main/java/org/apache/struts/helloworld/action/HelloWorldAction.java
----------------------------------------------------------------------
diff --git a/helloworld/src/main/java/org/apache/struts/helloworld/action/HelloWorldAction.java b/helloworld/src/main/java/org/apache/struts/helloworld/action/HelloWorldAction.java
index 8073413..8d55e22 100755
--- a/helloworld/src/main/java/org/apache/struts/helloworld/action/HelloWorldAction.java
+++ b/helloworld/src/main/java/org/apache/struts/helloworld/action/HelloWorldAction.java
@@ -30,8 +30,8 @@ public class HelloWorldAction extends ActionSupport {
      * @see com.opensymphony.xwork2.ActionSupport#execute()
      */
     public String execute() throws Exception {
-        
         messageStore = new MessageStore() ;
+        
         return SUCCESS;
     }
 
@@ -39,8 +39,4 @@ public class HelloWorldAction extends ActionSupport {
         return messageStore;
     }
 
-    public void setMessageStore(MessageStore messageStore) {
-        this.messageStore = messageStore;
-    }
-
 }