Author: sebb Date: Wed Mar 23 15:43:37 2011 New Revision: 1084618 URL: http://svn.apache.org/viewvc?rev=1084618&view=rev Log: Whitespace Use toString instead
Modified: commons/proper/net/trunk/src/main/java/examples/ftp/FTPClientExample.java Modified: commons/proper/net/trunk/src/main/java/examples/ftp/FTPClientExample.java URL: http://svn.apache.org/viewvc/commons/proper/net/trunk/src/main/java/examples/ftp/FTPClientExample.java?rev=1084618&r1=1084617&r2=1084618&view=diff ============================================================================== --- commons/proper/net/trunk/src/main/java/examples/ftp/FTPClientExample.java (original) +++ commons/proper/net/trunk/src/main/java/examples/ftp/FTPClientExample.java Wed Mar 23 15:43:37 2011 @@ -63,7 +63,7 @@ public final class FTPClientExample "\t-s - store file on server (upload)\n" + "\t-t - list file details using MLST (remote is used as the pathname if provided)\n" + "\t-w msec - wait time for keep-alive reply (setControlKeepAliveReplyTimeout)\n" + - "\t-T all|valid - use one of the built-in TrustManager implementations\n" + + "\t-T all|valid - use one of the built-in TrustManager implementations\n" + "\t-# - add hash display during transfers\n"; public static final void main(String[] args) @@ -181,14 +181,14 @@ public final class FTPClientExample if (prot.length == 1) { // Just protocol ftps = new FTPSClient(protocol); } else { // protocol,true|false - ftps = new FTPSClient(prot[0], Boolean.parseBoolean(prot[1])); + ftps = new FTPSClient(prot[0], Boolean.parseBoolean(prot[1])); } } ftp = ftps; if ("all".equals(trustmgr)) { ftps.setTrustManager(TrustManagerUtils.getAcceptAllTrustManager()); } else if ("valid".equals(trustmgr)) { - ftps.setTrustManager(TrustManagerUtils.getValidateServerCertificateTrustManager()); + ftps.setTrustManager(TrustManagerUtils.getValidateServerCertificateTrustManager()); } } @@ -290,14 +290,14 @@ __main: { for (FTPFile f : ftp.mlistDir(remote)) { System.out.println(f.getRawListing()); - System.out.println(f.toFormattedString()); + System.out.println(f.toString()); } } else if (mlst) { FTPFile f = ftp.mlistFile(remote); if (f != null){ - System.out.println(f.toFormattedString()); + System.out.println(f.toString()); } } else if (listNames)