Switching StringBuffer to StringBuilder throughout the codebase (APIs permitting).
This commit is contained in:
+1
-1
@@ -199,7 +199,7 @@ public class SpringSecurityLdapTemplate extends LdapTemplate {
|
||||
|
||||
SearchResult searchResult = resultsEnum.next();
|
||||
// Work out the DN of the matched entry
|
||||
StringBuffer dn = new StringBuffer(searchResult.getName());
|
||||
StringBuilder dn = new StringBuilder(searchResult.getName());
|
||||
|
||||
if (base.length() > 0) {
|
||||
dn.append(",");
|
||||
|
||||
+1
-1
@@ -168,7 +168,7 @@ public class FilterBasedLdapUserSearch implements LdapUserSearch {
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
StringBuffer sb = new StringBuffer();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
|
||||
sb.append("[ searchFilter: '").append(searchFilter).append("', ");
|
||||
sb.append("searchBase: '").append(searchBase).append("'");
|
||||
|
||||
Reference in New Issue
Block a user