commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rwins...@apache.org
Subject svn commit: r781174 - /commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/smtp/SMTP.java
Date Tue, 02 Jun 2009 21:17:05 GMT
Author: rwinston
Date: Tue Jun  2 21:17:05 2009
New Revision: 781174

URL: http://svn.apache.org/viewvc?rev=781174&view=rev
Log:
NET-279: Fix replyLines copying

Modified:
    commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/smtp/SMTP.java

Modified: commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/smtp/SMTP.java
URL: http://svn.apache.org/viewvc/commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/smtp/SMTP.java?rev=781174&r1=781173&r2=781174&view=diff
==============================================================================
--- commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/smtp/SMTP.java
(original)
+++ commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/smtp/SMTP.java
Tue Jun  2 21:17:05 2009
@@ -442,10 +442,7 @@
      ***/
     public String[] getReplyStrings()
     {
-        String[] lines;
-        lines = new String[_replyLines.size()];
-        _replyLines.addAll(Arrays.asList(lines));
-        return lines;
+    	  return _replyLines.toArray(new String[_replyLines.size()]);
     }
 
     /***



Mime
View raw message