commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ohe...@apache.org
Subject svn commit: r1536078 - /commons/proper/beanutils/branches/java5/src/main/java/org/apache/commons/beanutils/LazyDynaBean.java
Date Sun, 27 Oct 2013 09:59:58 GMT
Author: oheger
Date: Sun Oct 27 09:59:57 2013
New Revision: 1536078

URL: http://svn.apache.org/r1536078
Log:
LazyDynaBean now uses DynaBeanPropertyMapDecorator to expose its values as map.

This decorator class allows exposing the map with the generic types
<String, Object> rather than <Object, Object>.

Modified:
    commons/proper/beanutils/branches/java5/src/main/java/org/apache/commons/beanutils/LazyDynaBean.java

Modified: commons/proper/beanutils/branches/java5/src/main/java/org/apache/commons/beanutils/LazyDynaBean.java
URL: http://svn.apache.org/viewvc/commons/proper/beanutils/branches/java5/src/main/java/org/apache/commons/beanutils/LazyDynaBean.java?rev=1536078&r1=1536077&r2=1536078&view=diff
==============================================================================
--- commons/proper/beanutils/branches/java5/src/main/java/org/apache/commons/beanutils/LazyDynaBean.java
(original)
+++ commons/proper/beanutils/branches/java5/src/main/java/org/apache/commons/beanutils/LazyDynaBean.java
Sun Oct 27 09:59:57 2013
@@ -145,7 +145,7 @@ public class LazyDynaBean implements Dyn
     protected Map<String, Object> values;
 
     /** Map decorator for this DynaBean */
-    private transient Map<Object, Object> mapDecorator;
+    private transient Map<String, Object> mapDecorator;
 
     /**
      * The <code>MutableDynaClass</code> "base class" that this DynaBean
@@ -203,10 +203,10 @@ public class LazyDynaBean implements Dyn
      *
      * @return a Map representation of this DynaBean
      */
-    public Map<Object, Object> getMap() {
+    public Map<String, Object> getMap() {
         // cache the Map
         if (mapDecorator == null) {
-            mapDecorator = new DynaBeanMapDecorator(this);
+            mapDecorator = new DynaBeanPropertyMapDecorator(this);
         }
         return mapDecorator;
     }



Mime
View raw message