commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1071104 - /commons/proper/net/trunk/src/main/java/org/apache/commons/net/ftp/FTP.java
Date Tue, 15 Feb 2011 23:21:27 GMT
Author: sebb
Date: Tue Feb 15 23:21:27 2011
New Revision: 1071104

URL: http://svn.apache.org/viewvc?rev=1071104&view=rev
Log:
Localise string buffer

Modified:
    commons/proper/net/trunk/src/main/java/org/apache/commons/net/ftp/FTP.java

Modified: commons/proper/net/trunk/src/main/java/org/apache/commons/net/ftp/FTP.java
URL: http://svn.apache.org/viewvc/commons/proper/net/trunk/src/main/java/org/apache/commons/net/ftp/FTP.java?rev=1071104&r1=1071103&r2=1071104&view=diff
==============================================================================
--- commons/proper/net/trunk/src/main/java/org/apache/commons/net/ftp/FTP.java (original)
+++ commons/proper/net/trunk/src/main/java/org/apache/commons/net/ftp/FTP.java Tue Feb 15
23:21:27 2011
@@ -215,8 +215,6 @@ public class FTP extends SocketClient
     public static final String DEFAULT_CONTROL_ENCODING = "ISO-8859-1";
     private static final String __modes = "AEILNTCFRPSBC";
 
-    private final StringBuilder __commandBuffer = new StringBuilder();
-
     protected int _replyCode;
     protected ArrayList<String> _replyLines;
     protected boolean _newReplyString;
@@ -458,7 +456,8 @@ public class FTP extends SocketClient
     {
         String message;
 
-        __commandBuffer.setLength(0);
+        final StringBuilder __commandBuffer = new StringBuilder();
+
         __commandBuffer.append(command);
 
         if (args != null)



Mime
View raw message