changeset 1997:931cfd3ba5b6

4638075: DOC: Doc for java.beans.PropertyDescriptor.getPropertyType() is incorrect. Reviewed-by: gsm
author malenkov
date Wed, 09 Dec 2009 11:34:18 +0300
parents 31fac6705b41
children d72275039339
files src/share/classes/java/beans/IndexedPropertyDescriptor.java src/share/classes/java/beans/PropertyDescriptor.java
diffstat 2 files changed, 16 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/java/beans/IndexedPropertyDescriptor.java	Mon Nov 30 18:30:50 2009 +0300
+++ b/src/share/classes/java/beans/IndexedPropertyDescriptor.java	Wed Dec 09 11:34:18 2009 +0300
@@ -313,11 +313,14 @@
     }
 
     /**
-     * Gets the <code>Class</code> object of the indexed properties' type.
-     * The returned <code>Class</code> may describe a primitive type such as <code>int</code>.
+     * Returns the Java type info for the indexed property.
+     * Note that the {@code Class} object may describe
+     * primitive Java types such as {@code int}.
+     * This type is returned by the indexed read method
+     * or is used as the parameter type of the indexed write method.
      *
-     * @return The <code>Class</code> for the indexed properties' type; may return <code>null</code>
-     *         if the type cannot be determined.
+     * @return the {@code Class} object that represents the Java type info,
+     *         or {@code null} if the type cannot be determined
      */
     public synchronized Class<?> getIndexedPropertyType() {
         Class type = getIndexedPropertyType0();
--- a/src/share/classes/java/beans/PropertyDescriptor.java	Mon Nov 30 18:30:50 2009 +0300
+++ b/src/share/classes/java/beans/PropertyDescriptor.java	Wed Dec 09 11:34:18 2009 +0300
@@ -164,14 +164,16 @@
     }
 
     /**
-     * Gets the Class object for the property.
+     * Returns the Java type info for the property.
+     * Note that the {@code Class} object may describe
+     * primitive Java types such as {@code int}.
+     * This type is returned by the read method
+     * or is used as the parameter type of the write method.
+     * Returns {@code null} if the type is an indexed property
+     * that does not support non-indexed access.
      *
-     * @return The Java type info for the property.  Note that
-     * the "Class" object may describe a built-in Java type such as "int".
-     * The result may be "null" if this is an indexed property that
-     * does not support non-indexed access.
-     * <p>
-     * This is the type that will be returned by the ReadMethod.
+     * @return the {@code Class} object that represents the Java type info,
+     *         or {@code null} if the type cannot be determined
      */
     public synchronized Class<?> getPropertyType() {
         Class type = getPropertyType0();