commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1362099 - /commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/ram/RamFileSystem.java
Date Mon, 16 Jul 2012 15:39:35 GMT
Author: ggregory
Date: Mon Jul 16 15:39:34 2012
New Revision: 1362099

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

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

Modified: commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/ram/RamFileSystem.java
URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/ram/RamFileSystem.java?rev=1362099&r1=1362098&r2=1362099&view=diff
==============================================================================
--- commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/ram/RamFileSystem.java
(original)
+++ commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/ram/RamFileSystem.java
Mon Jul 16 15:39:34 2012
@@ -42,6 +42,8 @@ import org.apache.commons.vfs2.provider.
  */
 public class RamFileSystem extends AbstractFileSystem implements Serializable
 {
+    private static final int BUFFER_SIZE = 512;
+
     /**
      * serialVersionUID format is YYYYMMDD for the date of the last binary change.
      */
@@ -261,7 +263,7 @@ public class RamFileSystem extends Abstr
                 try
                 {
                     OutputStream os = new BufferedOutputStream(memFo
-                            .getOutputStream(), 512);
+                            .getOutputStream(), BUFFER_SIZE);
                     int i;
                     while ((i = is.read()) != -1)
                     {



Mime
View raw message