commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ohe...@apache.org
Subject svn commit: r1539818 - /commons/proper/beanutils/branches/java5/src/test/java/org/apache/commons/beanutils/MappedPropertyTestBean.java
Date Thu, 07 Nov 2013 21:02:58 GMT
Author: oheger
Date: Thu Nov  7 21:02:57 2013
New Revision: 1539818

URL: http://svn.apache.org/r1539818
Log:
Fixed warnings in test bean class.

Modified:
    commons/proper/beanutils/branches/java5/src/test/java/org/apache/commons/beanutils/MappedPropertyTestBean.java

Modified: commons/proper/beanutils/branches/java5/src/test/java/org/apache/commons/beanutils/MappedPropertyTestBean.java
URL: http://svn.apache.org/viewvc/commons/proper/beanutils/branches/java5/src/test/java/org/apache/commons/beanutils/MappedPropertyTestBean.java?rev=1539818&r1=1539817&r2=1539818&view=diff
==============================================================================
--- commons/proper/beanutils/branches/java5/src/test/java/org/apache/commons/beanutils/MappedPropertyTestBean.java
(original)
+++ commons/proper/beanutils/branches/java5/src/test/java/org/apache/commons/beanutils/MappedPropertyTestBean.java
Thu Nov  7 21:02:57 2013
@@ -29,8 +29,8 @@ import java.util.Map;
 
 public class MappedPropertyTestBean {
 
-    private final Map map = new HashMap();
-    private final Map myMap = new HashMap();
+    private final Map<Object, Object> map = new HashMap<Object, Object>();
+    private final Map<Object, Object> myMap = new HashMap<Object, Object>();
 
 
     // -------------------------------------------------------------- Properties
@@ -78,7 +78,7 @@ public class MappedPropertyTestBean {
     public String getInvalidGetter(String key, String other) {
         return (String) map.get(key);
     }
-    public Map getMyMap() {
+    public Map<Object, Object> getMyMap() {
         return myMap;
     }
 



Mime
View raw message