jackrabbit-oak-dev mailing list archives

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

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

- simplify

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=1301044&r1=1301043&r2=1301044&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:25:27 2012
@@ -36,7 +36,6 @@ import javax.jcr.Property;
 import javax.jcr.PropertyType;
 import javax.jcr.RepositoryException;
 import javax.jcr.Value;
-import javax.jcr.ValueFactory;
 import javax.jcr.ValueFormatException;
 import javax.jcr.lock.LockException;
 import javax.jcr.nodetype.ConstraintViolationException;
@@ -341,8 +340,7 @@ public class PropertyImpl extends ItemIm
             throw new ValueFormatException(LogUtil.safeGetJCRPath(this) + " is multi-valued.");
         }
 
-        ValueFactory valueFactory = sessionContext.getValueFactory();
-        return ValueConverter.toValue(valueFactory, value.asAtom());
+        return ValueConverter.toValue(getValueFactory(), value.asAtom());
     }
 
     @Override
@@ -352,8 +350,7 @@ public class PropertyImpl extends ItemIm
             throw new ValueFormatException(LogUtil.safeGetJCRPath(this) + " is not multi-valued.");
         }
 
-        ValueFactory valueFactory = sessionContext.getValueFactory();
-        return ValueConverter.toValue(valueFactory, value.asArray());
+        return ValueConverter.toValue(getValueFactory(), value.asArray());
     }
 
     /**



Mime
View raw message