commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <j...@apache.org>
Subject [jira] Commented: (COLLECTIONS-335) bidimap.TreeBidiMap.entrySet is never written
Date Tue, 02 Feb 2010 00:30:18 GMT

    [ https://issues.apache.org/jira/browse/COLLECTIONS-335?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12828369#action_12828369
] 

Sebb commented on COLLECTIONS-335:
----------------------------------

Yes, but the *only code* that accesses entrySet is the following, which does not write the
value:

{code}
public Set<Map.Entry<K, V>> entrySet() {
    if (entrySet == null) {
        return new EntryView();
    }
    return entrySet;
}
{code}

Thus entrySet will remain null, and a new EntryView() will always be created.

> bidimap.TreeBidiMap.entrySet is never written
> ---------------------------------------------
>
>                 Key: COLLECTIONS-335
>                 URL: https://issues.apache.org/jira/browse/COLLECTIONS-335
>             Project: Commons Collections
>          Issue Type: Bug
>            Reporter: Sebb
>
> The field bidimap.TreeBidiMap.entrySet is never written.
> Looks like it was perhaps intended to be used as a cache, but the cache value is not
written.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message