You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by cz...@apache.org on 2015/05/15 16:26:44 UTC
svn commit: r1679572 -
/sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/JcrPropertyMapCacheEntry.java
Author: cziegeler
Date: Fri May 15 14:26:44 2015
New Revision: 1679572
URL: http://svn.apache.org/r1679572
Log:
Remove duplicate check for long[]
Modified:
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/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=1679572&r1=1679571&r2=1679572&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 Fri May 15 14:26:44 2015
@@ -91,8 +91,8 @@ public class JcrPropertyMapCacheEntry {
failIfCannotStore(value, node);
}
}
-
- private void failIfCannotStore(final Object value, final Node node)
+
+ private void failIfCannotStore(final Object value, final Node node)
throws RepositoryException {
if (value instanceof InputStream) {
// InputStream is storable and calling createValue for nothing
@@ -149,8 +149,6 @@ public class JcrPropertyMapCacheEntry {
values = ArrayUtils.toObject((float[])value);
} else if (value instanceof short[]) {
values = ArrayUtils.toObject((short[])value);
- } else if (value instanceof long[]) {
- values = ArrayUtils.toObject((long[])value);
} else if (value instanceof boolean[]) {
values = ArrayUtils.toObject((boolean[])value);
} else if (value instanceof char[]) {