mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-06-16 17:55:15 +00:00
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:
parent
c8ed7691e0
commit
bb148ef5b8
@ -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
|
||||
* months old, else the format is 'Mmm dd yyyy'.
|
||||
*
|
||||
* @param buf StringBuffer
|
||||
* @param buf StringBuilder
|
||||
* @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
|
||||
|
@ -1320,11 +1320,10 @@ public class FTPSrvSession extends SrvSession implements Runnable
|
||||
|
||||
// Output the file information to the client
|
||||
|
||||
StringBuffer str = new StringBuffer(256);
|
||||
StringBuilder str = new StringBuilder(256);
|
||||
|
||||
for (FileInfo finfo : files)
|
||||
{
|
||||
|
||||
// Build the output record
|
||||
|
||||
str.setLength(0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user