You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2012/07/16 17:36:51 UTC

svn commit: r1362096 - in /commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/ftps: FtpsClientFactory.java FtpsFileSystemConfigBuilder.java

Author: ggregory
Date: Mon Jul 16 15:36:51 2012
New Revision: 1362096

URL: http://svn.apache.org/viewvc?rev=1362096&view=rev
Log:
Checkstyle fixes.

Modified:
    commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/ftps/FtpsClientFactory.java
    commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/ftps/FtpsFileSystemConfigBuilder.java

Modified: commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/ftps/FtpsClientFactory.java
URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/ftps/FtpsClientFactory.java?rev=1362096&r1=1362095&r2=1362096&view=diff
==============================================================================
--- commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/ftps/FtpsClientFactory.java (original)
+++ commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/ftps/FtpsClientFactory.java Mon Jul 16 15:36:51 2012
@@ -52,8 +52,7 @@ public final class FtpsClientFactory
      * @throws FileSystemException if an error occurs.
      */
     public static FTPSClient createConnection(String hostname, int port, char[] username, char[] password,
-                                              String workingDirectory, FileSystemOptions fileSystemOptions)
-        throws FileSystemException
+            String workingDirectory, FileSystemOptions fileSystemOptions) throws FileSystemException
     {
         // Determine the username and password to use
         if (username == null)
@@ -71,11 +70,13 @@ public final class FtpsClientFactory
 
             final FTPSClient client;
 
-            if (FtpsFileSystemConfigBuilder.getInstance().getFtpsType(fileSystemOptions).equals(FtpsFileSystemConfigBuilder.FTPS_TYPE_EXPLICIT))
+            if (FtpsFileSystemConfigBuilder.getInstance().getFtpsType(fileSystemOptions).equals(
+                    FtpsFileSystemConfigBuilder.FTPS_TYPE_EXPLICIT))
             {
                 client = new FTPSClient();
             }
-            else if (FtpsFileSystemConfigBuilder.getInstance().getFtpsType(fileSystemOptions).equals(FtpsFileSystemConfigBuilder.FTPS_TYPE_IMPLICIT))
+            else if (FtpsFileSystemConfigBuilder.getInstance().getFtpsType(fileSystemOptions).equals(
+                    FtpsFileSystemConfigBuilder.FTPS_TYPE_IMPLICIT))
             {
                 client = new FTPSClient(true);
             }
@@ -146,7 +147,8 @@ public final class FtpsClientFactory
                     client.connect(hostname, port);
 
 // For VFS-412
-//                    String execPROT = FtpsFileSystemConfigBuilder.getInstance().getDataChannelProtectionLevel(fileSystemOptions);
+//                    String execPROT = FtpsFileSystemConfigBuilder.getInstance().getDataChannelProtectionLevel(
+//                          fileSystemOptions);
 //                    if (execPROT != null)
 //                    {
 //                        client.execPROT(execPROT);

Modified: commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/ftps/FtpsFileSystemConfigBuilder.java
URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/ftps/FtpsFileSystemConfigBuilder.java?rev=1362096&r1=1362095&r2=1362096&view=diff
==============================================================================
--- commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/ftps/FtpsFileSystemConfigBuilder.java (original)
+++ commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/ftps/FtpsFileSystemConfigBuilder.java Mon Jul 16 15:36:51 2012
@@ -23,7 +23,7 @@ import org.apache.commons.vfs2.FileSyste
 import org.apache.commons.vfs2.provider.ftp.FtpFileSystem;
 
 /**
- * The config BUILDER for various ftp configuration options.
+ * The configuration builder for various FTP configuration options.
  *
  * @since 2.0
  */