struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From craig...@apache.org
Subject cvs commit: jakarta-struts/src/share/org/apache/struts/util BeanUtils.java
Date Mon, 21 May 2001 04:23:50 GMT
craigmcc    01/05/20 21:23:50

  Modified:    src/share/org/apache/struts/util Tag: STRUTS_1_0_BRANCH
                        BeanUtils.java
  Log:
  Collections.EMPTY_MAP was added in JDK 1.3.  Replace it with something
  that will compile in JDK 1.2 environments.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.28.2.1  +6 -5      jakarta-struts/src/share/org/apache/struts/util/BeanUtils.java
  
  Index: BeanUtils.java
  ===================================================================
  RCS file: /home/cvs/jakarta-struts/src/share/org/apache/struts/util/BeanUtils.java,v
  retrieving revision 1.28
  retrieving revision 1.28.2.1
  diff -u -r1.28 -r1.28.2.1
  --- BeanUtils.java	2001/05/20 01:18:27	1.28
  +++ BeanUtils.java	2001/05/21 04:23:48	1.28.2.1
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-struts/src/share/org/apache/struts/util/BeanUtils.java,v
1.28 2001/05/20 01:18:27 craigmcc Exp $
  - * $Revision: 1.28 $
  - * $Date: 2001/05/20 01:18:27 $
  + * $Header: /home/cvs/jakarta-struts/src/share/org/apache/struts/util/BeanUtils.java,v
1.28.2.1 2001/05/21 04:23:48 craigmcc Exp $
  + * $Revision: 1.28.2.1 $
  + * $Date: 2001/05/21 04:23:48 $
    *
    * ====================================================================
    *
  @@ -88,7 +88,7 @@
    * @author Craig R. McClanahan
    * @author Ralph Schaer
    * @author Chris Audley
  - * @version $Revision: 1.28 $ $Date: 2001/05/20 01:18:27 $
  + * @version $Revision: 1.28.2.1 $ $Date: 2001/05/21 04:23:48 $
    */
   
   public class BeanUtils {
  @@ -162,7 +162,8 @@
                  NoSuchMethodException {
   
           if (bean == null)
  -            return (Collections.EMPTY_MAP);
  +            //            return (Collections.EMPTY_MAP);
  +            return (new HashMap());
           PropertyDescriptor descriptors[] =
               PropertyUtils.getPropertyDescriptors(bean);
           Map description = new HashMap(descriptors.length);
  
  
  

Mime
View raw message