Unnecessary cast

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1023768 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sebastian Bazley 2010-10-18 12:41:35 +00:00
parent 342ac1462c
commit 0a31bb5731
1 changed files with 3 additions and 5 deletions

View File

@ -877,7 +877,7 @@ public class MapUtils {
Map<String, Object> map = new HashMap<String, Object>();
while (enumeration.hasMoreElements()) {
String key = (String) enumeration.nextElement();
String key = enumeration.nextElement();
Object value = resourceBundle.getObject(key);
map.put(key, value);
}
@ -1183,8 +1183,7 @@ public class MapUtils {
* @return true if empty or null
* @since Commons Collections 3.2
*/
@SuppressWarnings("unchecked")
public static boolean isEmpty(Map map) {
public static boolean isEmpty(Map<?,?> map) {
return (map == null || map.isEmpty());
}
@ -1197,8 +1196,7 @@ public class MapUtils {
* @return true if non-null and non-empty
* @since Commons Collections 3.2
*/
@SuppressWarnings("unchecked")
public static boolean isNotEmpty(Map map) {
public static boolean isNotEmpty(Map<?,?> map) {
return !MapUtils.isEmpty(map);
}