You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2012/07/16 17:39:35 UTC
svn commit: r1362099 -
/commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/ram/RamFileSystem.java
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)
{