mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emmanuel Lecharny (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DIRMINA-871) DefaultIoSessionAttributeMap returns the defaultValue parameter if no entry is found for the specified key, but does not add that new key/value pair to the map as specified in the javadocs.
Date Mon, 09 Jul 2012 14:46:35 GMT

    [ https://issues.apache.org/jira/browse/DIRMINA-871?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13409533#comment-13409533
] 

Emmanuel Lecharny commented on DIRMINA-871:
-------------------------------------------

Very true...
                
> DefaultIoSessionAttributeMap returns the defaultValue parameter if no entry is found
for the specified key, but does not add that new key/value pair to the map as specified in
the javadocs.
> ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: DIRMINA-871
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-871
>             Project: MINA
>          Issue Type: Bug
>    Affects Versions: 2.0.4
>         Environment: n/a 
>            Reporter: Aaron Shaw
>            Priority: Minor
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> DefaultIoSessionAttributeMap returns the defaultValue parameter if no entry is found
for the specified key, but does not add that new key/value pair to the map as specified in
the javadocs:
> public Object getAttribute(IoSession session, Object key, Object defaultValue) {
>             if (key == null) {
>                 throw new IllegalArgumentException("key");
>             }
>             Object answer = attributes.get(key);
>             if (answer == null) {
>                 return defaultValue;
>             }
>             
>             return answer;
>         }

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message