[ 
https://issues.apache.org/jira/browse/NET-515?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sebb resolved NET-515.
----------------------

       Resolution: Fixed
    Fix Version/s: 3.4

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


> FTPClient sample in class javadoc "bug"
> ---------------------------------------
>
>                 Key: NET-515
>                 URL: https://issues.apache.org/jira/browse/NET-515
>             Project: Commons Net
>          Issue Type: Task
>          Components: FTP
>    Affects Versions: 3.3
>         Environment: org.apache.commons.net.ftp.FTPClient
>            Reporter: Sebastian Ritter
>            Priority: Trivial
>             Fix For: 3.4
>
>   Original Estimate: 5m
>  Remaining Estimate: 5m
>
>       int reply;
>       ftp.connect("ftp.foobar.com");
>       System.out.println("Connected to " + server + ".");
>       System.out.print(ftp.getReplyString());
> (Line 2) ftp.connect parameter values contains the server from next line. It 
> looks like better and can use with copy/paste with one line more
>       int reply;
>       String server = "ftp.foobar.com";
>       ftp.connect(server);
>       System.out.println("Connected to " + server + ".");
>       System.out.print(ftp.getReplyString());



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to