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 2013/01/25 08:33:43 UTC

svn commit: r1438373 - /sling/trunk/bundles/api/src/main/java/org/apache/sling/api/resource/ValueMap.java

Author: cziegeler
Date: Fri Jan 25 07:33:43 2013
New Revision: 1438373

URL: http://svn.apache.org/viewvc?rev=1438373&view=rev
Log:
SLING-2712 :  Update JavaDocs of ValueMap wrt primitive types 

Modified:
    sling/trunk/bundles/api/src/main/java/org/apache/sling/api/resource/ValueMap.java

Modified: sling/trunk/bundles/api/src/main/java/org/apache/sling/api/resource/ValueMap.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/api/src/main/java/org/apache/sling/api/resource/ValueMap.java?rev=1438373&r1=1438372&r2=1438373&view=diff
==============================================================================
--- sling/trunk/bundles/api/src/main/java/org/apache/sling/api/resource/ValueMap.java (original)
+++ sling/trunk/bundles/api/src/main/java/org/apache/sling/api/resource/ValueMap.java Fri Jan 25 07:33:43 2013
@@ -39,6 +39,9 @@ public interface ValueMap extends Map<St
 
     /**
      * Get a named property and convert it into the given type.
+     * This method does not support conversion into a primitive type or an
+     * array of a primitive type. It should return <code>null</code> in this
+     * case.
      *
      * @param name The name of the property
      * @param type The class of the type
@@ -49,6 +52,9 @@ public interface ValueMap extends Map<St
 
     /**
      * Get a named property and convert it into the given type.
+     * This method does not support conversion into a primitive type or an
+     * array of a primitive type. It should return the default value in this
+     * case.
      *
      * @param name The name of the property
      * @param defaultValue The default value to use if the named property does