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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to