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:
parent
342ac1462c
commit
0a31bb5731
|
@ -877,7 +877,7 @@ public class MapUtils {
|
||||||
Map<String, Object> map = new HashMap<String, Object>();
|
Map<String, Object> map = new HashMap<String, Object>();
|
||||||
|
|
||||||
while (enumeration.hasMoreElements()) {
|
while (enumeration.hasMoreElements()) {
|
||||||
String key = (String) enumeration.nextElement();
|
String key = enumeration.nextElement();
|
||||||
Object value = resourceBundle.getObject(key);
|
Object value = resourceBundle.getObject(key);
|
||||||
map.put(key, value);
|
map.put(key, value);
|
||||||
}
|
}
|
||||||
|
@ -1183,8 +1183,7 @@ public class MapUtils {
|
||||||
* @return true if empty or null
|
* @return true if empty or null
|
||||||
* @since Commons Collections 3.2
|
* @since Commons Collections 3.2
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("unchecked")
|
public static boolean isEmpty(Map<?,?> map) {
|
||||||
public static boolean isEmpty(Map map) {
|
|
||||||
return (map == null || map.isEmpty());
|
return (map == null || map.isEmpty());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1197,8 +1196,7 @@ public class MapUtils {
|
||||||
* @return true if non-null and non-empty
|
* @return true if non-null and non-empty
|
||||||
* @since Commons Collections 3.2
|
* @since Commons Collections 3.2
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("unchecked")
|
public static boolean isNotEmpty(Map<?,?> map) {
|
||||||
public static boolean isNotEmpty(Map map) {
|
|
||||||
return !MapUtils.isEmpty(map);
|
return !MapUtils.isEmpty(map);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue