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 <stefaan.du...@gmail.com> Authored: Mon Apr 17 15:25:24 2017 +0200 Committer: Stefaan Dutry <stefaan.du...@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; - } - }