[
https://issues.apache.org/jira/browse/HTTPCORE-364?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13830989#comment-13830989
]
Oleg Kalnichevski commented on HTTPCORE-364:
--------------------------------------------
Please feel free to go ahead and fix it.
Oleg
> IOSessionImpl.getLocalAddress() creates unnecessary copy of channel
> -------------------------------------------------------------------
>
> Key: HTTPCORE-364
> URL: https://issues.apache.org/jira/browse/HTTPCORE-364
> Project: HttpComponents HttpCore
> Issue Type: Improvement
> Reporter: Sebb
> Priority: Minor
>
> IOSessionImpl.getLocalAddress() copies the final field channel into a local
> variable also called channel. This seems completely unnecessary; the
> statement could be dropped. (If channel were mutablle, the statement would
> make sense).
> Similarly for getRemoteAddress()
--
This message was sent by Atlassian JIRA
(v6.1#6144)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]