[
https://issues.apache.org/jira/browse/HTTPCORE-364?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sebb resolved HTTPCORE-364.
---------------------------
Resolution: Fixed
Fix Version/s: 4.3.1
URL: http://svn.apache.org/r1545087
Log:
HTTPCORE-364: IOSessionImpl.getLocalAddress() creates unnecessary copy of
channel
Modified:
httpcomponents/httpcore/trunk/RELEASE_NOTES.txt
httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/impl/nio/reactor/IOSessionImpl.java
> 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
> Fix For: 4.3.1
>
>
> 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]