commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ohe...@apache.org
Subject svn commit: r1536080 - /commons/proper/beanutils/branches/java5/src/main/java/org/apache/commons/beanutils/BasicDynaBean.java
Date Sun, 27 Oct 2013 10:00:58 GMT
Author: oheger
Date: Sun Oct 27 10:00:58 2013
New Revision: 1536080

URL: http://svn.apache.org/r1536080
Log:
BasicDynaBean now uses the new DynaBeanPropertyMapDecorator in its getMap() method.

This makes it possible to expose the map as a Map<String, Object>.

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

Modified: commons/proper/beanutils/branches/java5/src/main/java/org/apache/commons/beanutils/BasicDynaBean.java
URL: http://svn.apache.org/viewvc/commons/proper/beanutils/branches/java5/src/main/java/org/apache/commons/beanutils/BasicDynaBean.java?rev=1536080&r1=1536079&r2=1536080&view=diff
==============================================================================
--- commons/proper/beanutils/branches/java5/src/main/java/org/apache/commons/beanutils/BasicDynaBean.java
(original)
+++ commons/proper/beanutils/branches/java5/src/main/java/org/apache/commons/beanutils/BasicDynaBean.java
Sun Oct 27 10:00:58 2013
@@ -76,7 +76,7 @@ public class BasicDynaBean implements Dy
     protected HashMap<String, Object> values = new HashMap<String, Object>();
 
     /** Map decorator for this DynaBean */
-    private transient Map<Object, Object> mapDecorator;
+    private transient Map<String, Object> mapDecorator;
 
     /**
      * Return a Map representation of this DynaBean.
@@ -88,11 +88,11 @@ public class BasicDynaBean implements Dy
      * @return a Map representation of this DynaBean
      * @since 1.8.0
      */
-    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