commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebastian Ritter (JIRA)" <j...@apache.org>
Subject [jira] [Created] (NET-515) FTPClient sample in class javadoc "bug"
Date Mon, 02 Sep 2013 14:16:51 GMT
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

Mime
View raw message