1
0
mirror of synced 2026-08-05 09:47:05 +00:00

Switching StringBuffer to StringBuilder throughout the codebase (APIs permitting).

This commit is contained in:
Luke Taylor
2009-12-18 18:44:42 +00:00
parent fac07ba8ff
commit aeed49393c
21 changed files with 22 additions and 22 deletions
@@ -82,7 +82,7 @@ public class Contact implements Serializable {
}
public String toString() {
StringBuffer sb = new StringBuffer();
StringBuilder sb = new StringBuilder();
sb.append(super.toString() + ": ");
sb.append("Id: " + this.getId() + "; ");
sb.append("Name: " + this.getName() + "; ");
@@ -70,7 +70,7 @@ public abstract class AbstractElement {
currentElement = currentElement.getParent();
}
StringBuffer sb = new StringBuffer();
StringBuilder sb = new StringBuilder();
String lastCharacter = null;
for (Iterator<String> i = strings.iterator(); i.hasNext();) {
String token = i.next();