jackrabbit-oak-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r1301043 - /jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/PropertyImpl.java
Date Thu, 15 Mar 2012 15:23:32 GMT
Author: angela
Date: Thu Mar 15 15:23:32 2012
New Revision: 1301043

URL: http://svn.apache.org/viewvc?rev=1301043&view=rev
Log:
OAK-16 : Proper ValueFactory implementation and Value handling

- duplicate check in #getValue()

Modified:
    jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/PropertyImpl.java

Modified: jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/PropertyImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/PropertyImpl.java?rev=1301043&r1=1301042&r2=1301043&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/PropertyImpl.java
(original)
+++ jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/PropertyImpl.java
Thu Mar 15 15:23:32 2012
@@ -341,10 +341,6 @@ public class PropertyImpl extends ItemIm
             throw new ValueFormatException(LogUtil.safeGetJCRPath(this) + " is multi-valued.");
         }
 
-        if (!value.isAtom()) {
-            throw new ValueFormatException(value.toJson());
-        }
-
         ValueFactory valueFactory = sessionContext.getValueFactory();
         return ValueConverter.toValue(valueFactory, value.asAtom());
     }



Mime
View raw message