Author: cziegeler
Date: Tue Nov  6 13:38:11 2012
New Revision: 1406133

URL: http://svn.apache.org/viewvc?rev=1406133&view=rev
Log:
SLING-2650 :  Speed up JcrPropertyMapCacheEntry . Apply patch from Marcel 
Reutegger

Modified:
    
sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/JcrResourceUtil.java
    
sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/JcrPropertyMapCacheEntry.java

Modified: 
sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/JcrResourceUtil.java
URL: 
http://svn.apache.org/viewvc/sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/JcrResourceUtil.java?rev=1406133&r1=1406132&r2=1406133&view=diff
==============================================================================
--- 
sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/JcrResourceUtil.java
 (original)
+++ 
sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/JcrResourceUtil.java
 Tue Nov  6 13:38:11 2012
@@ -86,7 +86,7 @@ public class JcrResourceUtil {
     public static Object toJavaObject(Property property)
             throws RepositoryException {
         // multi-value property: return an array of values
-        if (property.getDefinition().isMultiple()) {
+        if (property.isMultiple()) {
             Value[] values = property.getValues();
             Object[] result = new Object[values.length];
             for (int i = 0; i < values.length; i++) {

Modified: 
sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/JcrPropertyMapCacheEntry.java
URL: 
http://svn.apache.org/viewvc/sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/JcrPropertyMapCacheEntry.java?rev=1406133&r1=1406132&r2=1406133&view=diff
==============================================================================
--- 
sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/JcrPropertyMapCacheEntry.java
 (original)
+++ 
sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/JcrPropertyMapCacheEntry.java
 Tue Nov  6 13:38:11 2012
@@ -67,7 +67,7 @@ public class JcrPropertyMapCacheEntry {
     public JcrPropertyMapCacheEntry(final Property prop)
     throws RepositoryException {
         this.property = prop;
-        if ( prop.getDefinition().isMultiple() ) {
+        if ( prop.isMultiple() ) {
             isMulti = true;
             values = prop.getValues();
         } else {


Reply via email to