You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2020/11/20 22:24:58 UTC
[commons-collections] branch master updated: Remove useless
null-check.
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-collections.git
The following commit(s) were added to refs/heads/master by this push:
new bd9d387 Remove useless null-check.
bd9d387 is described below
commit bd9d3873fe80dd16f7f2db6fe1a2f5e21aab8a27
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Nov 20 17:24:53 2020 -0500
Remove useless null-check.
---
src/main/java/org/apache/commons/collections4/MapUtils.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/java/org/apache/commons/collections4/MapUtils.java b/src/main/java/org/apache/commons/collections4/MapUtils.java
index 961e314..7298f33 100644
--- a/src/main/java/org/apache/commons/collections4/MapUtils.java
+++ b/src/main/java/org/apache/commons/collections4/MapUtils.java
@@ -875,7 +875,7 @@ public class MapUtils {
public static <K> Map<?, ?> getMap(final Map<? super K, ?> map, final K key) {
if (map != null) {
final Object answer = map.get(key);
- if (answer != null && answer instanceof Map) {
+ if (answer instanceof Map) {
return (Map<?, ?>) answer;
}
}