mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Trustin Lee (JIRA)" <j...@apache.org>
Subject [jira] Commented: (DIRMINA-534) AbstractIoSession's getId()
Date Tue, 11 Mar 2008 02:22:46 GMT

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

Trustin Lee commented on DIRMINA-534:
-------------------------------------

IMHO, yep. :)

> AbstractIoSession's getId()
> ---------------------------
>
>                 Key: DIRMINA-534
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-534
>             Project: MINA
>          Issue Type: Improvement
>    Affects Versions: 2.0.0-M2
>            Reporter: Roger Kapsi
>            Priority: Minor
>             Fix For: 2.0.0-M2
>
>
> I would use System.identityHashCode(this) instead of hashCode() in AbstractIoSession.getId()
and you'd have to no longer override equals & hashCode() (I assume that's the reason why
both methods are overridden & final).

-- 
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