jackrabbit-oak-dev mailing list archives

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

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

- duplicate check in #getValues()

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=1301041&r1=1301040&r2=1301041&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:20:39 2012
@@ -356,10 +356,6 @@ public class PropertyImpl extends ItemIm
             throw new ValueFormatException(LogUtil.safeGetJCRPath(this) + " is not multi-valued.");
         }
 
-        if (!value.isArray()) {
-            throw new ValueFormatException(value.toJson());
-        }
-
         ValueFactory valueFactory = sessionContext.getValueFactory();
         return ValueConverter.toValue(valueFactory, value.asArray());
     }



Mime
View raw message