src/share/classes/java/beans/PropertyDescriptor.java
Print this page
rev 10053 : 8044855: Add missing @since tag under java.beans.*
Reviewed-by:
@@ -30,10 +30,11 @@
import java.lang.reflect.Constructor;
/**
* A PropertyDescriptor describes one property that a Java Bean
* exports via a pair of accessor methods.
+ * @since 1.1
*/
public class PropertyDescriptor extends FeatureDescriptor {
private Reference<? extends Class<?>> propertyTypeRef;
private final MethodRef readMethodRef = new MethodRef();
@@ -242,10 +243,11 @@
/**
* Sets the method that should be used to read the property value.
*
* @param readMethod The new read method.
* @throws IntrospectionException if the read method is invalid
+ * @since 1.2
*/
public synchronized void setReadMethod(Method readMethod)
throws IntrospectionException {
this.readMethodRef.set(readMethod);
if (readMethod == null) {
@@ -312,10 +314,11 @@
/**
* Sets the method that should be used to write the property value.
*
* @param writeMethod The new write method.
* @throws IntrospectionException if the write method is invalid
+ * @since 1.2
*/
public synchronized void setWriteMethod(Method writeMethod)
throws IntrospectionException {
this.writeMethodRef.set(writeMethod);
if (writeMethod == null) {