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/19 21:59:07 UTC

[6/9] 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/f4fb7dfb
Tree: http://git-wip-us.apache.org/repos/asf/struts-examples/tree/f4fb7dfb
Diff: http://git-wip-us.apache.org/repos/asf/struts-examples/diff/f4fb7dfb

Branch: refs/heads/master
Commit: f4fb7dfb95496d152f8f23f8029a7ba85e07cc1e
Parents: 1010c52
Author: Stefaan Dutry <st...@gmail.com>
Authored: Wed Apr 19 22:59:24 2017 +0200
Committer: Stefaan Dutry <st...@gmail.com>
Committed: Wed Apr 19 22:59:24 2017 +0200

----------------------------------------------------------------------
 .../struts/using_tags/helloworld/model/MessageStore.java       | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/struts-examples/blob/f4fb7dfb/using-tags/src/main/java/org/apache/struts/using_tags/helloworld/model/MessageStore.java
----------------------------------------------------------------------
diff --git a/using-tags/src/main/java/org/apache/struts/using_tags/helloworld/model/MessageStore.java b/using-tags/src/main/java/org/apache/struts/using_tags/helloworld/model/MessageStore.java
index b14f766..6871281 100644
--- a/using-tags/src/main/java/org/apache/struts/using_tags/helloworld/model/MessageStore.java
+++ b/using-tags/src/main/java/org/apache/struts/using_tags/helloworld/model/MessageStore.java
@@ -10,17 +10,13 @@ public class MessageStore {
     private String message;
     
     public MessageStore() {
-        setMessage("Hello Struts User");
+        message = "Hello Struts User";
     }
 
     public String getMessage() {
         return message;
     }
 
-    public void setMessage(String message) {
-        this.message = message;
-    }
-    
     public String toString() {
         return message + " (from toString)";
     }