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

Sebb commented on HTTPCORE-364:
-------------------------------

Also getSocket()

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

Reply via email to