Couple of minor changes to use StringBuilder.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@3690 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Gary Spencer 2006-09-05 10:08:21 +00:00
parent c8ed7691e0
commit bb148ef5b8
2 changed files with 3 additions and 4 deletions

View File

@ -41,10 +41,10 @@ public class FTPDate
* Pack a date string in Unix format The format is 'Mmm dd hh:mm' if the file is less than six * Pack a date string in Unix format The format is 'Mmm dd hh:mm' if the file is less than six
* months old, else the format is 'Mmm dd yyyy'. * months old, else the format is 'Mmm dd yyyy'.
* *
* @param buf StringBuffer * @param buf StringBuilder
* @param dt Date * @param dt Date
*/ */
public final static void packUnixDate(StringBuffer buf, Date dt) public final static void packUnixDate(StringBuilder buf, Date dt)
{ {
// Check if the date is valid // Check if the date is valid

View File

@ -1320,11 +1320,10 @@ public class FTPSrvSession extends SrvSession implements Runnable
// Output the file information to the client // Output the file information to the client
StringBuffer str = new StringBuffer(256); StringBuilder str = new StringBuilder(256);
for (FileInfo finfo : files) for (FileInfo finfo : files)
{ {
// Build the output record // Build the output record
str.setLength(0); str.setLength(0);