struts-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sdu...@apache.org
Subject [6/9] struts-examples git commit: removed unnecessary setter
Date Wed, 19 Apr 2017 21:59:07 GMT
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 <stefaan.dutry@gmail.com>
Authored: Wed Apr 19 22:59:24 2017 +0200
Committer: Stefaan Dutry <stefaan.dutry@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)";
     }


Mime
View raw message