You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Sebastian Ritter (JIRA)" <ji...@apache.org> on 2013/09/02 16:16:51 UTC

[jira] [Created] (NET-515) FTPClient sample in class javadoc "bug"

Sebastian Ritter created NET-515:
------------------------------------

             Summary: 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



      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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira