commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1548764 - in /commons/proper/net/trunk/src: changes/changes.xml main/java/org/apache/commons/net/ftp/FTPClient.java
Date Sat, 07 Dec 2013 00:13:48 GMT
Author: sebb
Date: Sat Dec  7 00:13:48 2013
New Revision: 1548764

URL: http://svn.apache.org/r1548764
Log:
NET-515 FTPClient sample in class javadoc "bug"

Modified:
    commons/proper/net/trunk/src/changes/changes.xml
    commons/proper/net/trunk/src/main/java/org/apache/commons/net/ftp/FTPClient.java

Modified: commons/proper/net/trunk/src/changes/changes.xml
URL: http://svn.apache.org/viewvc/commons/proper/net/trunk/src/changes/changes.xml?rev=1548764&r1=1548763&r2=1548764&view=diff
==============================================================================
--- commons/proper/net/trunk/src/changes/changes.xml [utf-8] (original)
+++ commons/proper/net/trunk/src/changes/changes.xml [utf-8] Sat Dec  7 00:13:48 2013
@@ -64,6 +64,9 @@ The <action> type attribute can be add,u
     <body>
         <release version="3.4" date="2013-??-??" description="
         ">
+            <action issue="NET-515" type="fix" due-to="Sebastian Ritter">
+            FTPClient sample in class javadoc "bug"
+            </action>
             <action issue="NET-519" type="fix">
             Apache Commons Net 3.3 has a performance issue
             </action>

Modified: commons/proper/net/trunk/src/main/java/org/apache/commons/net/ftp/FTPClient.java
URL: http://svn.apache.org/viewvc/commons/proper/net/trunk/src/main/java/org/apache/commons/net/ftp/FTPClient.java?rev=1548764&r1=1548763&r2=1548764&view=diff
==============================================================================
--- commons/proper/net/trunk/src/main/java/org/apache/commons/net/ftp/FTPClient.java (original)
+++ commons/proper/net/trunk/src/main/java/org/apache/commons/net/ftp/FTPClient.java Sat Dec
 7 00:13:48 2013
@@ -73,7 +73,8 @@ import org.apache.commons.net.io.Util;
  *    boolean error = false;
  *    try {
  *      int reply;
- *      ftp.connect("ftp.foobar.com");
+ *      String server = "ftp.example.com";
+ *      ftp.connect(server);
  *      System.out.println("Connected to " + server + ".");
  *      System.out.print(ftp.getReplyString());
  *



Mime
View raw message