commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ohe...@apache.org
Subject svn commit: r1536081 - in /commons/proper/beanutils/branches/java5/src: main/java/org/apache/commons/beanutils/DynaBeanMapDecorator.java test/java/org/apache/commons/beanutils/DynaBeanMapDecoratorTestCase.java
Date Sun, 27 Oct 2013 10:01:34 GMT
Author: oheger
Date: Sun Oct 27 10:01:34 2013
New Revision: 1536081

URL: http://svn.apache.org/r1536081
Log:
Deprecated DynaBeanMapDecorator.

New code should use DynaBeanPropertyMapDecorator which has the correct generic
type parameters.

Modified:
    commons/proper/beanutils/branches/java5/src/main/java/org/apache/commons/beanutils/DynaBeanMapDecorator.java
    commons/proper/beanutils/branches/java5/src/test/java/org/apache/commons/beanutils/DynaBeanMapDecoratorTestCase.java

Modified: commons/proper/beanutils/branches/java5/src/main/java/org/apache/commons/beanutils/DynaBeanMapDecorator.java
URL: http://svn.apache.org/viewvc/commons/proper/beanutils/branches/java5/src/main/java/org/apache/commons/beanutils/DynaBeanMapDecorator.java?rev=1536081&r1=1536080&r2=1536081&view=diff
==============================================================================
--- commons/proper/beanutils/branches/java5/src/main/java/org/apache/commons/beanutils/DynaBeanMapDecorator.java
(original)
+++ commons/proper/beanutils/branches/java5/src/main/java/org/apache/commons/beanutils/DynaBeanMapDecorator.java
Sun Oct 27 10:01:34 2013
@@ -64,7 +64,12 @@ package org.apache.commons.beanutils;
  *
  * @since BeanUtils 1.8.0
  * @version $Id$
+ * @deprecated Use {@link DynaBeanPropertyMapDecorator} instead. When adding
+ * generics it turned out that it was not possible to use the correct type
+ * parameters without breaking backwards compatibility. Therefore, class
+ * {@code DynaBeanPropertyMapDecorator} was introduced as a replacement.
  */
+@Deprecated
 public class DynaBeanMapDecorator extends BaseDynaBeanMapDecorator<Object> {
     /**
      * Construct a Map for the specified {@link DynaBean}.

Modified: commons/proper/beanutils/branches/java5/src/test/java/org/apache/commons/beanutils/DynaBeanMapDecoratorTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/beanutils/branches/java5/src/test/java/org/apache/commons/beanutils/DynaBeanMapDecoratorTestCase.java?rev=1536081&r1=1536080&r2=1536081&view=diff
==============================================================================
--- commons/proper/beanutils/branches/java5/src/test/java/org/apache/commons/beanutils/DynaBeanMapDecoratorTestCase.java
(original)
+++ commons/proper/beanutils/branches/java5/src/test/java/org/apache/commons/beanutils/DynaBeanMapDecoratorTestCase.java
Sun Oct 27 10:01:34 2013
@@ -34,6 +34,7 @@ import junit.framework.TestSuite;
  *
  * @version $Id$
  */
+@SuppressWarnings("deprecation")
 public class DynaBeanMapDecoratorTestCase extends TestCase {
 
     private static final DynaProperty stringProp = new DynaProperty("stringProp", String.class);



Mime
View raw message