You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Thomas Neidhart (JIRA)" <ji...@apache.org> on 2015/11/27 22:12:14 UTC
[jira] [Closed] (COLLECTIONS-521) Typo in MultiMapKey's
isEqualKey(entry, key1, key2)
[ https://issues.apache.org/jira/browse/COLLECTIONS-521?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Thomas Neidhart closed COLLECTIONS-521.
---------------------------------------
> Typo in MultiMapKey's isEqualKey(entry, key1, key2)
> ---------------------------------------------------
>
> Key: COLLECTIONS-521
> URL: https://issues.apache.org/jira/browse/COLLECTIONS-521
> Project: Commons Collections
> Issue Type: Bug
> Reporter: Maxime Nay
> Fix For: 4.1
>
>
> I believe there is a typo line 252 in MultiKeyMap.
> return
> multi.size() == 2 &&
> (key1 == multi.getKey(0) || key1 != null && key1.equals(multi.getKey(0))) &&
> (key2 == multi.getKey(1) || key1 != null && key2.equals(multi.getKey(1)));
> should be:
> return
> multi.size() == 2 &&
> (key1 == multi.getKey(0) || key1 != null && key1.equals(multi.getKey(0))) &&
> (key2 == multi.getKey(1) || key2 != null && key2.equals(multi.getKey(1)));
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)