[prev in list] [next in list] [prev in thread] [next in thread]
List: turbine-torque-dev
Subject: svn commit: r1574673 - /db/torque/torque4/trunk/torque-generator/src/main/java/org/apache/torque/gen
From: tfischer () apache ! org
Date: 2014-03-05 21:28:37
Message-ID: 20140305212837.D6F67238899C () eris ! apache ! org
[Download RAW message or body]
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/ja \
va/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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic