commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rwins...@apache.org
Subject svn commit: r745929 - /commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/ftp/FTP.java
Date Thu, 19 Feb 2009 17:11:31 GMT
Author: rwinston
Date: Thu Feb 19 17:11:30 2009
New Revision: 745929

URL: http://svn.apache.org/viewvc?rev=745929&view=rev
Log:
NET-257 : fix getReplyStrings()

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

Modified: commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/ftp/FTP.java
URL: http://svn.apache.org/viewvc/commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/ftp/FTP.java?rev=745929&r1=745928&r2=745929&view=diff
==============================================================================
--- commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/ftp/FTP.java
(original)
+++ commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/ftp/FTP.java
Thu Feb 19 17:11:30 2009
@@ -628,10 +628,7 @@
      ***/
     public String[] getReplyStrings()
     {
-        String[] lines;
-        lines = new String[_replyLines.size()];
-        _replyLines.addAll(Arrays.asList(lines));
-        return lines;
+        return _replyLines.toArray(new String[0]);
     }
 
     /***



Mime
View raw message