db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tfisc...@apache.org
Subject svn commit: r1574673 - /db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/generator/processor/string/CharReplacer.java
Date Wed, 05 Mar 2014 21:28:37 GMT
Author: tfischer
Date: Wed Mar  5 21:28:37 2014
New Revision: 1574673

URL: http://svn.apache.org/r1574673
Log:
use final where possible
add toString method

Modified:
    db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/generator/processor/string/CharReplacer.java

Modified: db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/generator/processor/string/CharReplacer.java
URL: http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/generator/processor/string/CharReplacer.java?rev=1574673&r1=1574672&r2=1574673&view=diff
==============================================================================
--- db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/generator/processor/string/CharReplacer.java
(original)
+++ db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/generator/processor/string/CharReplacer.java
Wed Mar  5 21:28:37 2014
@@ -64,7 +64,7 @@ public class CharReplacer implements Str
      * @param toReplace a String containing all the Characters
      *         which should be replaced, not null.
      */
-    public void setToReplace(String toReplace)
+    public void setToReplace(final String toReplace)
     {
         if (toReplace == null)
         {
@@ -90,7 +90,7 @@ public class CharReplacer implements Str
      *
      * @param toReplaceWith the replacement, not null.
      */
-    public void setToReplaceWith(String toReplaceWith)
+    public void setToReplaceWith(final String toReplaceWith)
     {
         if (toReplaceWith == null)
         {
@@ -108,7 +108,7 @@ public class CharReplacer implements Str
      *
      * @return the processed String, not null.
      */
-    public String process(String toProcess)
+    public String process(final String toProcess)
     {
         StringBuilder result = new StringBuilder();
         for (int i = 0; i < toProcess.length(); ++i)
@@ -125,4 +125,11 @@ public class CharReplacer implements Str
         }
         return result.toString();
     }
+
+    @Override
+    public String toString()
+    {
+        return "CharReplacer [toReplace=" + toReplace + ", toReplaceWith="
+                + toReplaceWith + "]";
+    }
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


Mime
View raw message