jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r758263 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/PropertyImpl.java
Date Wed, 25 Mar 2009 14:01:09 GMT
Author: angela
Date: Wed Mar 25 14:01:05 2009
New Revision: 758263

URL: http://svn.apache.org/viewvc?rev=758263&view=rev
Log:
minor improvement: use Session.getValueFactory() instead of ValueFactoryImpl.getInstance()

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

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/PropertyImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/PropertyImpl.java?rev=758263&r1=758262&r2=758263&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/PropertyImpl.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/PropertyImpl.java
Wed Mar 25 14:01:05 2009
@@ -27,7 +27,6 @@
 import org.apache.jackrabbit.spi.Path;
 import org.apache.jackrabbit.spi.Name;
 import org.apache.jackrabbit.value.ValueHelper;
-import org.apache.jackrabbit.value.ValueFactoryImpl;
 import org.apache.jackrabbit.spi.commons.name.NameConstants;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
@@ -343,8 +342,7 @@
             // type conversion required
             Value targetValue = ValueHelper.convert(
                     InternalValue.create(name).toJCRValue(session),
-                    reqType,
-                    ValueFactoryImpl.getInstance());
+                    reqType, session.getValueFactory());
             internalValue = InternalValue.create(targetValue, session, rep.getDataStore());
         } else {
             // no type conversion required
@@ -395,8 +393,7 @@
                         // type conversion required
                         Value targetValue = ValueHelper.convert(
                                 InternalValue.create(name).toJCRValue(session),
-                                reqType,
-                                ValueFactoryImpl.getInstance());
+                                reqType, session.getValueFactory());
                         internalValue = InternalValue.create(targetValue, session, rep.getDataStore());
                     } else {
                         // no type conversion required
@@ -613,8 +610,7 @@
         if (reqType != value.getType()) {
             // type conversion required
             Value targetVal = ValueHelper.convert(
-                    value, reqType,
-                    ValueFactoryImpl.getInstance());
+                    value, reqType, session.getValueFactory());
             internalValue = InternalValue.create(targetVal, session, rep.getDataStore());
         } else {
             // no type conversion required



Mime
View raw message