commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rdon...@apache.org
Subject cvs commit: jakarta-commons/beanutils/src/java/org/apache/commons/beanutils BeanUtilsBean.java
Date Sat, 24 May 2003 08:14:23 GMT
rdonkin     2003/05/24 01:14:23

  Modified:    beanutils/src/java/org/apache/commons/beanutils
                        BeanUtilsBean.java
  Log:
  Changed javadocs to emphasis that cloneBean create a shallow clone. This should help to
clear up any confusion about whether cloneBean is a shallow or deep cloning.
  
  Revision  Changes    Path
  1.10      +12 -6     jakarta-commons/beanutils/src/java/org/apache/commons/beanutils/BeanUtilsBean.java
  
  Index: BeanUtilsBean.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/beanutils/src/java/org/apache/commons/beanutils/BeanUtilsBean.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- BeanUtilsBean.java	22 May 2003 14:16:08 -0000	1.9
  +++ BeanUtilsBean.java	24 May 2003 08:14:23 -0000	1.10
  @@ -187,8 +187,14 @@
       // --------------------------------------------------------- Public Methods
   
       /**
  -     * Clone a bean based on the available property getters and setters,
  -     * even if the bean class itself does not implement Cloneable.
  +     * <p>Clone a bean based on the available property getters and setters,
  +     * even if the bean class itself does not implement Cloneable.</p>
  +     *
  +     * <p>
  +     * <strong>Note:</strong> this method creates a <strong>shallow</strong>
clone.
  +     * In other words, any objects referred to by the bean are shared with the clone
  +     * rather than being cloned in turn.
  +     * </p>
        *
        * @param bean Bean to be cloned
        *
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message