commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r922740 - /commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/ftp/FTPSClient.java
Date Sun, 14 Mar 2010 02:39:02 GMT
Author: sebb
Date: Sun Mar 14 02:39:02 2010
New Revision: 922740

URL: http://svn.apache.org/viewvc?rev=922740&view=rev
Log:
Make private fields set by ctors final

Modified:
    commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/ftp/FTPSClient.java

Modified: commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/ftp/FTPSClient.java
URL: http://svn.apache.org/viewvc/commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/ftp/FTPSClient.java?rev=922740&r1=922739&r2=922740&view=diff
==============================================================================
--- commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/ftp/FTPSClient.java
(original)
+++ commons/proper/net/branches/NET_2_0/src/main/java/org/apache/commons/net/ftp/FTPSClient.java
Sun Mar 14 02:39:02 2010
@@ -59,9 +59,9 @@ public class FTPSClient extends FTPClien
     private static final String DEFAULT_PROTOCOL = "TLS";
 
     /** The security mode. (True - Implicit Mode / False - Explicit Mode) */
-    private boolean isImplicit;
+    private final boolean isImplicit;
     /** The use SSL/TLS protocol. */
-    private String protocol = DEFAULT_PROTOCOL;
+    private final String protocol;
     /** The AUTH Command value */
     private String auth = DEFAULT_PROTOCOL;
     /** The context object. */
@@ -140,6 +140,7 @@ public class FTPSClient extends FTPClien
     public FTPSClient(boolean isImplicit, SSLContext context) {
         this.isImplicit = isImplicit;
         this.context = context;
+        this.protocol = DEFAULT_PROTOCOL;
     }
     
     /**



Mime
View raw message