commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1329902 - /commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/URLFileName.java
Date Tue, 24 Apr 2012 18:04:21 GMT
Author: ggregory
Date: Tue Apr 24 18:04:20 2012
New Revision: 1329902

URL: http://svn.apache.org/viewvc?rev=1329902&view=rev
Log:
Use a more readable constant name.

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

Modified: commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/URLFileName.java
URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/URLFileName.java?rev=1329902&r1=1329901&r2=1329902&view=diff
==============================================================================
--- commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/URLFileName.java
(original)
+++ commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/URLFileName.java
Tue Apr 24 18:04:20 2012
@@ -24,7 +24,7 @@ import org.apache.commons.vfs2.FileType;
 
 public class URLFileName extends GenericFileName
 {
-    private static final int BUFFSZ = 250;
+    private static final int BUFFER_SIZE = 250;
 
     private final String queryString;
 
@@ -59,7 +59,7 @@ public class URLFileName extends Generic
      */
     public String getPathQuery()
     {
-        StringBuilder sb = new StringBuilder(BUFFSZ);
+        StringBuilder sb = new StringBuilder(BUFFER_SIZE);
         sb.append(getPath());
         sb.append("?");
         sb.append(getQueryString());
@@ -89,7 +89,7 @@ public class URLFileName extends Generic
             }
         }
 
-        StringBuilder sb = new StringBuilder(BUFFSZ);
+        StringBuilder sb = new StringBuilder(BUFFER_SIZE);
         if (charset != null)
         {
             sb.append(URIUtil.encodePath(getPathDecoded(), charset));
@@ -133,7 +133,7 @@ public class URLFileName extends Generic
     {
         if (getQueryString() != null)
         {
-            StringBuilder sb = new StringBuilder(BUFFSZ);
+            StringBuilder sb = new StringBuilder(BUFFER_SIZE);
             sb.append(super.createURI());
             sb.append("?");
             sb.append(getQueryString());
@@ -153,7 +153,7 @@ public class URLFileName extends Generic
      */
     public String getURIEncoded(String charset) throws FileSystemException, URIException
     {
-        StringBuilder sb = new StringBuilder(BUFFSZ);
+        StringBuilder sb = new StringBuilder(BUFFER_SIZE);
         appendRootUri(sb, true);
         sb.append(getPathQueryEncoded(charset));
         return sb.toString();



Mime
View raw message