hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oleg Kalnichevski (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (HTTPCLIENT-1065) Documentation on SingleClientConnManager(SchemeRegistry schreg) constructor is wrong
Date Thu, 03 Mar 2011 09:02:37 GMT

     [ https://issues.apache.org/jira/browse/HTTPCLIENT-1065?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Oleg Kalnichevski resolved HTTPCLIENT-1065.
-------------------------------------------

       Resolution: Fixed
    Fix Version/s: 4.2 Final

Corrected. Many thanks, Toli

Oleg

> Documentation on SingleClientConnManager(SchemeRegistry schreg) constructor is wrong
> ------------------------------------------------------------------------------------
>
>                 Key: HTTPCLIENT-1065
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1065
>             Project: HttpComponents HttpClient
>          Issue Type: Task
>          Components: HttpClient
>    Affects Versions: 4.1 Final
>            Reporter: Toli Kuznets
>            Priority: Minor
>              Labels: documentaion
>             Fix For: 4.2 Final
>
>
> Seems that the documentation for single-arg constructor SingleClientConnManager(SchemeRegistry
schreg) is wrong.
> Documentation says that incoming SchemeRegistry parameter can be null:
>     schreg - the scheme registry, or null for the default registry
> However, the constructor throws an exception in incoming schreg param is null:
>     /**
>      * Creates a new simple connection manager.
>      *
>      * @param params    the parameters for this manager
>      * @param schreg    the scheme registry, or
>      *                  <code>null</code> for the default registry
>      */
>     public SingleClientConnManager(HttpParams params,
>                                    SchemeRegistry schreg) {
>         if (schreg == null) {
>             throw new IllegalArgumentException
>                 ("Scheme registry must not be null.");
>         }
> So this is likely a documentation bug...

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Mime
View raw message