Use CAPACITY, not literal magic number.

git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@227239 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary D. Gregory 2005-08-03 18:00:04 +00:00
parent 614accbff9
commit dcfba435bb
1 changed files with 2 additions and 2 deletions

View File

@ -101,9 +101,9 @@ public class StrBuilder implements Cloneable {
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);
}
}