commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r227239 - /jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/StrBuilder.java
Date Wed, 03 Aug 2005 18:00:07 GMT
Author: ggregory
Date: Wed Aug  3 11:00:04 2005
New Revision: 227239

URL: http://svn.apache.org/viewcvs?rev=227239&view=rev
Log:
Use CAPACITY, not literal magic number.

Modified:
    jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/StrBuilder.java

Modified: jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/StrBuilder.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/StrBuilder.java?rev=227239&r1=227238&r2=227239&view=diff
==============================================================================
--- jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/StrBuilder.java
(original)
+++ jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/StrBuilder.java
Wed Aug  3 11:00:04 2005
@@ -101,9 +101,9 @@
     public StrBuilder(String str) {
         super();
         if (str == null) {
-            buf = new char[32];
+            buf = new char[CAPACITY];
         } else {
-            buf = new char[str.length() + 32];
+            buf = new char[str.length() + CAPACITY];
             append(str);
         }
     }



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


Mime
View raw message