hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Toli Kuznets (JIRA)" <j...@apache.org>
Subject [jira] Created: (HTTPCLIENT-1065) Documentation on SingleClientConnManager(SchemeRegistry schreg) constructor is wrong
Date Wed, 02 Mar 2011 19:49:37 GMT
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


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