struts-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sdu...@apache.org
Subject [5/6] struts-examples git commit: removed unnecessary setter
Date Mon, 17 Apr 2017 15:19:52 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/8d530157
Tree: http://git-wip-us.apache.org/repos/asf/struts-examples/tree/8d530157
Diff: http://git-wip-us.apache.org/repos/asf/struts-examples/diff/8d530157

Branch: refs/heads/master
Commit: 8d530157fed0df9442fb897478195889428de0f3
Parents: a7c5f30
Author: Stefaan Dutry <stefaan.dutry@gmail.com>
Authored: Mon Apr 17 15:40:37 2017 +0200
Committer: Stefaan Dutry <stefaan.dutry@gmail.com>
Committed: Mon Apr 17 15:40:37 2017 +0200

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


http://git-wip-us.apache.org/repos/asf/struts-examples/blob/8d530157/helloworld/src/main/java/org/apache/struts/helloworld/model/MessageStore.java
----------------------------------------------------------------------
diff --git a/helloworld/src/main/java/org/apache/struts/helloworld/model/MessageStore.java
b/helloworld/src/main/java/org/apache/struts/helloworld/model/MessageStore.java
index cb70e51..e52fa89 100755
--- a/helloworld/src/main/java/org/apache/struts/helloworld/model/MessageStore.java
+++ b/helloworld/src/main/java/org/apache/struts/helloworld/model/MessageStore.java
@@ -10,15 +10,11 @@ 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;
-    }
-
 }


Mime
View raw message