commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1337642 - /commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/ftps/FtpsFileSystemConfigBuilder.java
Date Sat, 12 May 2012 20:48:40 GMT
Author: ggregory
Date: Sat May 12 20:48:39 2012
New Revision: 1337642

URL: http://svn.apache.org/viewvc?rev=1337642&view=rev
Log:
Refactor key prefix into a private constant.

Modified:
    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/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=1337642&r1=1337641&r2=1337642&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
Sat May 12 20:48:39 2012
@@ -29,32 +29,25 @@ import org.apache.commons.vfs2.provider.
  */
 public final class FtpsFileSystemConfigBuilder extends FileSystemConfigBuilder
 {
+    private static final String _PREFIX = FtpsFileSystemConfigBuilder.class.getName();
+
     private static final FtpsFileSystemConfigBuilder BUILDER =
         new FtpsFileSystemConfigBuilder();
 
-    private static final String FACTORY_KEY =
-        FTPFileEntryParserFactory.class.getName() + ".KEY";
-    private static final String PASSIVE_MODE =
-        FtpsFileSystemConfigBuilder.class.getName() + ".PASSIVE";
-    private static final String USER_DIR_IS_ROOT =
-        FtpsFileSystemConfigBuilder.class.getName() + ".USER_DIR_IS_ROOT";
-    private static final String DATA_TIMEOUT =
-        FtpsFileSystemConfigBuilder.class.getName() + ".DATA_TIMEOUT";
-    private static final String FTPS_TYPE =
-        FtpsFileSystemConfigBuilder.class.getName() + ".FTPS_TYPE";
-    private static final String SERVER_LANGUAGE_CODE =
-        FtpsFileSystemConfigBuilder.class.getName() + ".SERVER_LANGUAGE_CODE";
-    private static final String DEFAULT_DATE_FORMAT =
-        FtpsFileSystemConfigBuilder.class.getName() + ".DEFAULT_DATE_FORMAT";
-    private static final String RECENT_DATE_FORMAT =
-        FtpsFileSystemConfigBuilder.class.getName() + ".RECENT_DATE_FORMAT";
-    private static final String SERVER_TIME_ZONE_ID =
-        FtpsFileSystemConfigBuilder.class.getName() + ".SERVER_TIME_ZONE_ID";
-    private static final String SHORT_MONTH_NAMES =
-        FtpsFileSystemConfigBuilder.class.getName() + ".SHORT_MONTH_NAMES";
+    private static final String FACTORY_KEY = FTPFileEntryParserFactory.class.getName() +
".KEY";
+    private static final String PASSIVE_MODE = _PREFIX + ".PASSIVE";
+    private static final String USER_DIR_IS_ROOT = _PREFIX + ".USER_DIR_IS_ROOT";
+    private static final String DATA_TIMEOUT = _PREFIX + ".DATA_TIMEOUT";
+    private static final String FTPS_TYPE = _PREFIX + ".FTPS_TYPE";
+    private static final String SERVER_LANGUAGE_CODE = _PREFIX + ".SERVER_LANGUAGE_CODE";
+    private static final String DEFAULT_DATE_FORMAT = _PREFIX + ".DEFAULT_DATE_FORMAT";
+    private static final String RECENT_DATE_FORMAT = _PREFIX + ".RECENT_DATE_FORMAT";
+    private static final String SERVER_TIME_ZONE_ID = _PREFIX + ".SERVER_TIME_ZONE_ID";
+    private static final String SHORT_MONTH_NAMES = _PREFIX + ".SHORT_MONTH_NAMES";
     public static final String FTPS_TYPE_IMPLICIT = "implicit";
     public static final String FTPS_TYPE_EXPLICIT = "explicit";
-// For VFS-412                    
+
+    // For VFS-412                    
 //  private static final String PROT = 
 //          FtpsFileSystemConfigBuilder.class.getName() + ".PROT";
 



Mime
View raw message