commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1362100 - /commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/res/ResourceFileProvider.java
Date Mon, 16 Jul 2012 15:40:30 GMT
Author: ggregory
Date: Mon Jul 16 15:40:30 2012
New Revision: 1362100

URL: http://svn.apache.org/viewvc?rev=1362100&view=rev
Log:
Checkstyle fixes.

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

Modified: commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/res/ResourceFileProvider.java
URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/res/ResourceFileProvider.java?rev=1362100&r1=1362099&r2=1362100&view=diff
==============================================================================
--- commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/res/ResourceFileProvider.java
(original)
+++ commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/res/ResourceFileProvider.java
Mon Jul 16 15:40:30 2012
@@ -35,6 +35,8 @@ import org.apache.commons.vfs2.provider.
  */
 public class ResourceFileProvider extends AbstractFileProvider
 {
+    private static final int BUFFER_SIZE = 80;
+    
     /** The provider's capabilities */
     protected static final Collection<Capability> capabilities =
         Collections.unmodifiableCollection(Arrays.asList(new Capability[]
@@ -60,7 +62,7 @@ public class ResourceFileProvider extend
                                final FileSystemOptions fileSystemOptions)
         throws FileSystemException
     {
-        StringBuilder buf = new StringBuilder(80);
+        StringBuilder buf = new StringBuilder(BUFFER_SIZE);
         UriParser.extractScheme(uri, buf);
         String resourceName = buf.toString();
 



Mime
View raw message