jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r783759 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/value/InternalValue.java
Date Thu, 11 Jun 2009 13:15:31 GMT
Author: angela
Date: Thu Jun 11 13:15:31 2009
New Revision: 783759

URL: http://svn.apache.org/viewvc?rev=783759&view=rev
Log:
JCR-2142: InternalValue should implement QValue.discard() for BINARY types

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/value/InternalValue.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/value/InternalValue.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/value/InternalValue.java?rev=783759&r1=783758&r2=783759&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/value/InternalValue.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/value/InternalValue.java
Thu Jun 11 13:15:31 2009
@@ -813,4 +813,16 @@
             }
         }
     }
+
+    /**
+     * @see org.apache.jackrabbit.spi.QValue#discard()
+     */
+    public void discard() {
+        if (type == PropertyType.BINARY) {
+            BLOBFileValue bfv = (BLOBFileValue) val;
+            bfv.discard();
+        } else {
+            super.discard();
+        }
+    }
 }



Mime
View raw message