jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject svn commit: r178433 - /incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/value/BLOBFileValue.java
Date Wed, 25 May 2005 13:14:21 GMT
Author: stefan
Date: Wed May 25 06:14:21 2005
New Revision: 178433

URL: http://svn.apache.org/viewcvs?rev=178433&view=rev
Log:
BLOBFileValue: fixed semantics of BLOBFileValue(byte[]) constructor

Modified:
    incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/value/BLOBFileValue.java

Modified: incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/value/BLOBFileValue.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/value/BLOBFileValue.java?rev=178433&r1=178432&r2=178433&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/value/BLOBFileValue.java
(original)
+++ incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/value/BLOBFileValue.java
Wed May 25 06:14:21 2005
@@ -153,12 +153,11 @@
      * instance
      */
     public BLOBFileValue(byte[] bytes) {
-        buffer = new byte[bytes.length];
-        System.arraycopy(bytes, 0, buffer, 0, bytes.length);
+        buffer = bytes;
         file = null;
         fsResource = null;
-        // this instance is backed by a temporarily allocated buffer
-        temp = true;
+        // this instance is not backed by a temporarily allocated buffer
+        temp = false;
     }
 
     /**



Mime
View raw message