commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1409637 - /commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/AbstractFileObject.java
Date Thu, 15 Nov 2012 02:00:10 GMT
Author: ggregory
Date: Thu Nov 15 02:00:09 2012
New Revision: 1409637

URL: http://svn.apache.org/viewvc?rev=1409637&view=rev
Log:
Make it clear that the use of the StringBuilder is used by side effect in extractScheme().

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

Modified: commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/AbstractFileObject.java
URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/AbstractFileObject.java?rev=1409637&r1=1409636&r2=1409637&view=diff
==============================================================================
--- commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/AbstractFileObject.java
(original)
+++ commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/AbstractFileObject.java
Thu Nov 15 02:00:09 2012
@@ -530,7 +530,8 @@ public abstract class AbstractFileObject
                 public URL run() throws MalformedURLException
                 {
                     final StringBuilder buf = new StringBuilder();
-                    return new URL(UriParser.extractScheme(name.getURI(), buf), "", -1,
+                    final String scheme = UriParser.extractScheme(name.getURI(), buf);
+                    return new URL(scheme, "", -1,
                         buf.toString(), new DefaultURLStreamHandler(fs.getContext(), fs.getFileSystemOptions()));
                 }
             });



Mime
View raw message