craigmcc 01/05/20 21:20:22
Modified: beanutils/src/java/org/apache/commons/beanutils
BeanUtils.java
Log:
Collections.EMPTY_MAP was added in JDK 1.3. Replace it with something
that will compile in JDK 1.2 environments.
Submitted by: Kelvin Ho <[EMAIL PROTECTED]>
Revision Changes Path
1.4 +6 -5
jakarta-commons/beanutils/src/java/org/apache/commons/beanutils/BeanUtils.java
Index: BeanUtils.java
===================================================================
RCS file:
/home/cvs/jakarta-commons/beanutils/src/java/org/apache/commons/beanutils/BeanUtils.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- BeanUtils.java 2001/04/16 16:30:12 1.3
+++ BeanUtils.java 2001/05/21 04:20:21 1.4
@@ -1,7 +1,7 @@
/*
- * $Header:
/home/cvs/jakarta-commons/beanutils/src/java/org/apache/commons/beanutils/BeanUtils.java,v
1.3 2001/04/16 16:30:12 craigmcc Exp $
- * $Revision: 1.3 $
- * $Date: 2001/04/16 16:30:12 $
+ * $Header:
/home/cvs/jakarta-commons/beanutils/src/java/org/apache/commons/beanutils/BeanUtils.java,v
1.4 2001/05/21 04:20:21 craigmcc Exp $
+ * $Revision: 1.4 $
+ * $Date: 2001/05/21 04:20:21 $
*
* ====================================================================
*
@@ -85,7 +85,7 @@
* @author Craig R. McClanahan
* @author Ralph Schaer
* @author Chris Audley
- * @version $Revision: 1.3 $ $Date: 2001/04/16 16:30:12 $
+ * @version $Revision: 1.4 $ $Date: 2001/05/21 04:20:21 $
*/
public class BeanUtils {
@@ -159,7 +159,8 @@
NoSuchMethodException {
if (bean == null)
- return (Collections.EMPTY_MAP);
+ // return (Collections.EMPTY_MAP);
+ return (new java.util.HashMap());
PropertyDescriptor descriptors[] =
PropertyUtils.getPropertyDescriptors(bean);
Map description = new HashMap(descriptors.length);