Skip to content

Commit 5eaac87

Browse files
author
Rory Winston
committed
NET-279: Fix replyLines copying
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/net/branches/NET_2_0@781174 13f79535-47bb-0310-9956-ffa450edef68
1 parent 3141ea4 commit 5eaac87

File tree

1 file changed

+1
-4
lines changed
  • src/main/java/org/apache/commons/net/smtp

1 file changed

+1
-4
lines changed

src/main/java/org/apache/commons/net/smtp/SMTP.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -442,10 +442,7 @@ public int getReply() throws IOException
442442
***/
443443
public String[] getReplyStrings()
444444
{
445-
String[] lines;
446-
lines = new String[_replyLines.size()];
447-
_replyLines.addAll(Arrays.asList(lines));
448-
return lines;
445+
return _replyLines.toArray(new String[_replyLines.size()]);
449446
}
450447

451448
/***

0 commit comments

Comments
 (0)