Author: ggregory
Date: Wed Jun 13 14:30:57 2012
New Revision: 1349874

URL: http://svn.apache.org/viewvc?rev=1349874&view=rev
Log:
Refactor magic port number into constant.

Modified:
    
commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/sftp/SftpFileNameParser.java

Modified: 
commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/sftp/SftpFileNameParser.java
URL: 
http://svn.apache.org/viewvc/commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/sftp/SftpFileNameParser.java?rev=1349874&r1=1349873&r2=1349874&view=diff
==============================================================================
--- 
commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/sftp/SftpFileNameParser.java
 (original)
+++ 
commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/sftp/SftpFileNameParser.java
 Wed Jun 13 14:30:57 2012
@@ -25,11 +25,13 @@ import org.apache.commons.vfs2.provider.
  */
 public class SftpFileNameParser extends URLFileNameParser
 {
+    private static final int DEFAULT_PORT = 22;
+    
     private static final SftpFileNameParser INSTANCE = new 
SftpFileNameParser();
 
     public SftpFileNameParser()
     {
-        super(22);
+        super(DEFAULT_PORT);
     }
 
     public static FileNameParser getInstance()


Reply via email to