svn commit: r598680 - /ofbiz/branches/release4.0/framework/base/src/base/org/ofbiz/base/util/StringUtil.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r598680 - /ofbiz/branches/release4.0/framework/base/src/base/org/ofbiz/base/util/StringUtil.java

jleroux@apache.org
Author: jleroux
Date: Tue Nov 27 07:54:00 2007
New Revision: 598680

URL: http://svn.apache.org/viewvc?rev=598680&view=rev
Log:
Done manually from trunk revision: 598679  


Modified:
    ofbiz/branches/release4.0/framework/base/src/base/org/ofbiz/base/util/StringUtil.java

Modified: ofbiz/branches/release4.0/framework/base/src/base/org/ofbiz/base/util/StringUtil.java
URL: http://svn.apache.org/viewvc/ofbiz/branches/release4.0/framework/base/src/base/org/ofbiz/base/util/StringUtil.java?rev=598680&r1=598679&r2=598680&view=diff
==============================================================================
--- ofbiz/branches/release4.0/framework/base/src/base/org/ofbiz/base/util/StringUtil.java (original)
+++ ofbiz/branches/release4.0/framework/base/src/base/org/ofbiz/base/util/StringUtil.java Tue Nov 27 07:54:00 2007
@@ -419,10 +419,10 @@
      * @return
      */
     public static String addToNumberString(String numberString, long addAmount) {
- if (numberString == null) return null;
-
- int origLength = numberString.length();
- long number = Long.parseLong(numberString);
+    if (numberString == null) return null;
+    
+    int origLength = numberString.length();
+    long number = Long.parseLong(numberString);
         return padNumberString(Long.toString(number + addAmount), origLength);
     }
     
@@ -451,7 +451,7 @@
      * </ol>
      */
     public static String htmlSpecialChars(String html, boolean doubleQuotes, boolean singleQuotes, boolean insertBR) {
-        html = StringUtil.replaceString(html, "&", "&amps;");
+        html = StringUtil.replaceString(html, "&", "&amp;");
         html = StringUtil.replaceString(html, "<", "&lt;");
         html = StringUtil.replaceString(html, ">", "&gt;");
         if (doubleQuotes) {