commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1511556 - /commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/ram/RamFileObject.java
Date Thu, 08 Aug 2013 02:03:43 GMT
Author: ggregory
Date: Thu Aug  8 02:03:43 2013
New Revision: 1511556

URL: http://svn.apache.org/r1511556
Log:
[VFS-483][RAM] Many suggestions to improve the RAM file provider. Replace 'this.data.getContent().length'
with 'this.size()'.

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

Modified: commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/ram/RamFileObject.java
URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/ram/RamFileObject.java?rev=1511556&r1=1511555&r2=1511556&view=diff
==============================================================================
--- commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/ram/RamFileObject.java
(original)
+++ commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/provider/ram/RamFileObject.java
Thu Aug  8 02:03:43 2013
@@ -89,7 +89,7 @@ public class RamFileObject extends Abstr
     @Override
     protected long doGetContentSize() throws Exception
     {
-        return this.data.getContent().length;
+        return this.size();
     }
 
     /*



Mime
View raw message