hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HTTPCORE-364) IOSessionImpl.getLocalAddress() creates unnecessary copy of channel
Date Sun, 24 Nov 2013 15:46:35 GMT
Sebb created HTTPCORE-364:
-----------------------------

             Summary: 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: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Mime
View raw message