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:
parent
614accbff9
commit
dcfba435bb
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue