commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1364691 - /commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/webdav/WebdavFileObject.java
Date Mon, 23 Jul 2012 15:55:43 GMT
Author: ggregory
Date: Mon Jul 23 15:55:43 2012
New Revision: 1364691

URL: http://svn.apache.org/viewvc?rev=1364691&view=rev
Log:
Rename private method urlString to toUrlString.

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

Modified: commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/webdav/WebdavFileObject.java
URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/webdav/WebdavFileObject.java?rev=1364691&r1=1364690&r2=1364691&view=diff
==============================================================================
--- commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/webdav/WebdavFileObject.java
(original)
+++ commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/webdav/WebdavFileObject.java
Mon Jul 23 15:55:43 2012
@@ -238,7 +238,7 @@ public class WebdavFileObject extends Ht
     protected void doRename(FileObject newFile) throws Exception
     {
         String url = encodePath(urlString((URLFileName) getName()));
-        String dest = urlString((URLFileName) newFile.getName(), false);
+        String dest = toUrlString((URLFileName) newFile.getName(), false);
         DavMethod method = new MoveMethod(url, dest, false);
         setupMethod(method);
         execute(method);
@@ -547,17 +547,17 @@ public class WebdavFileObject extends Ht
 
     private String urlString(URLFileName name)
     {
-        return urlString(name, true);
+        return toUrlString(name, true);
     }
 
     /**
-     * Convert the FileName to an encoded url String.
+     * Converts the given URLFileName to an encoded URL String.
      *
      * @param name The FileName.
      * @param includeUserInfo true if user information should be included.
      * @return The encoded URL String.
      */
-    private String urlString(URLFileName name, boolean includeUserInfo)
+    private String toUrlString(URLFileName name, boolean includeUserInfo)
     {
         String user = null;
         String password = null;



Mime
View raw message