Repository: struts-examples
Updated Branches:
  refs/heads/master 6d98cba65 -> 18affab89


changed indentation (tabs to spaces)


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

Branch: refs/heads/master
Commit: 141802c3884bf53c92c802ddd35ef6ae25250f74
Parents: 6d98cba
Author: Stefaan Dutry <stefaan.du...@gmail.com>
Authored: Wed Apr 19 22:26:07 2017 +0200
Committer: Stefaan Dutry <stefaan.du...@gmail.com>
Committed: Wed Apr 19 22:26:07 2017 +0200

----------------------------------------------------------------------
 .../helloworld/action/HelloWorldAction.java     | 87 ++++++++++----------
 .../helloworld/model/MessageStore.java          | 35 ++++----
 2 files changed, 58 insertions(+), 64 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/struts-examples/blob/141802c3/using-tags/src/main/java/org/apache/struts/using_tags/helloworld/action/HelloWorldAction.java
----------------------------------------------------------------------
diff --git 
a/using-tags/src/main/java/org/apache/struts/using_tags/helloworld/action/HelloWorldAction.java
 
b/using-tags/src/main/java/org/apache/struts/using_tags/helloworld/action/HelloWorldAction.java
index 2a777be..8a37129 100644
--- 
a/using-tags/src/main/java/org/apache/struts/using_tags/helloworld/action/HelloWorldAction.java
+++ 
b/using-tags/src/main/java/org/apache/struts/using_tags/helloworld/action/HelloWorldAction.java
@@ -14,49 +14,46 @@ import 
org.apache.struts.using_tags.helloworld.model.MessageStore;
  */
 public class HelloWorldAction extends ActionSupport {
 
-       private static final long serialVersionUID = 1L;
-       
-       /**
-        * The model class that stores the message
-        * to display in the view.
-        */
-       private MessageStore messageStore;
-       
-       private static int helloCount = 0;
-       
-       public int getHelloCount() {
-               return helloCount;
-       }
-
-       public void setHelloCount(int helloCount) {
-               HelloWorldAction.helloCount = helloCount;
-       }
-
-       /*
-        * Creates the MessageStore model object, 
-        * increase helloCount by 1 and 
-        * returns success.  The MessageStore model
-        * object will be available to the view.
-        * (non-Javadoc)
-        * @see com.opensymphony.xwork2.ActionSupport#execute()
-        */
-       public String execute() throws Exception {
-               
-               messageStore = new MessageStore() ;
-               
-               helloCount++;
-               
-               return SUCCESS;
-       }
-
-       public MessageStore getMessageStore() {
-               return messageStore;
-       }
-
-       public void setMessageStore(MessageStore messageStore) {
-               this.messageStore = messageStore;
-       }
-       
-       
-
+    private static final long serialVersionUID = 1L;
+    
+    /**
+     * The model class that stores the message
+     * to display in the view.
+     */
+    private MessageStore messageStore;
+    
+    private static int helloCount = 0;
+    
+    public int getHelloCount() {
+        return helloCount;
+    }
+
+    public void setHelloCount(int helloCount) {
+        HelloWorldAction.helloCount = helloCount;
+    }
+
+    /*
+     * Creates the MessageStore model object, 
+     * increase helloCount by 1 and 
+     * returns success.  The MessageStore model
+     * object will be available to the view.
+     * (non-Javadoc)
+     * @see com.opensymphony.xwork2.ActionSupport#execute()
+     */
+    public String execute() throws Exception {
+        messageStore = new MessageStore() ;
+        
+        helloCount++;
+        
+        return SUCCESS;
+    }
+
+    public MessageStore getMessageStore() {
+        return messageStore;
+    }
+
+    public void setMessageStore(MessageStore messageStore) {
+        this.messageStore = messageStore;
+    }
+    
 }

http://git-wip-us.apache.org/repos/asf/struts-examples/blob/141802c3/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 8870513..b14f766 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
@@ -6,26 +6,23 @@ package org.apache.struts.using_tags.helloworld.model;
  *
  */
 public class MessageStore {
-       
-       private String message;
-       
-       public MessageStore() {
-               
-               setMessage("Hello Struts User");
-       }
+    
+    private String message;
+    
+    public MessageStore() {
+        setMessage("Hello Struts User");
+    }
 
-       public String getMessage() {
-               return message;
-       }
+    public String getMessage() {
+        return message;
+    }
 
-       public void setMessage(String message) {
-               this.message = message;
-       }
-       
-       public String toString() {
-               
-               return message + " (from toString)";
-               
-       }
+    public void setMessage(String message) {
+        this.message = message;
+    }
+    
+    public String toString() {
+        return message + " (from toString)";
+    }
 
 }

Reply via email to