commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ohe...@apache.org
Subject svn commit: r1540326 - /commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils/BeanMap.java
Date Sat, 09 Nov 2013 15:17:56 GMT
Author: oheger
Date: Sat Nov  9 15:17:56 2013
New Revision: 1540326

URL: http://svn.apache.org/r1540326
Log:
[BEANUTILS-441] Replaced UnmodifiableSet.decorate() by Collections.unmodiableSet().

Modified:
    commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils/BeanMap.java

Modified: commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils/BeanMap.java
URL: http://svn.apache.org/viewvc/commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils/BeanMap.java?rev=1540326&r1=1540325&r2=1540326&view=diff
==============================================================================
--- commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils/BeanMap.java
(original)
+++ commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils/BeanMap.java
Sat Nov  9 15:17:56 2013
@@ -35,7 +35,6 @@ import java.util.Set;
 
 import org.apache.commons.collections.Transformer;
 import org.apache.commons.collections.keyvalue.AbstractMapEntry;
-import org.apache.commons.collections.set.UnmodifiableSet;
 
 /**
  * An implementation of Map for JavaBeans which uses introspection to
@@ -498,12 +497,12 @@ public class BeanMap extends AbstractMap
      * @return BeanMap keys.  The Set returned by this method is not
      *        modifiable.
      */
-    @SuppressWarnings("unchecked")
+    @SuppressWarnings({ "unchecked", "rawtypes" })
     // The set actually contains strings; however, because it cannot be
     // modified there is no danger in selling it as Set<Object>
     @Override
     public Set<Object> keySet() {
-        return UnmodifiableSet.decorate(readMethods.keySet());
+        return Collections.unmodifiableSet((Set) readMethods.keySet());
     }
 
     /**



Mime
View raw message