You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by ol...@apache.org on 2009/06/05 21:11:44 UTC

svn commit: r782102 - /httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/conn/tsccm/ThreadSafeClientConnManager.java

Author: olegk
Date: Fri Jun  5 19:11:44 2009
New Revision: 782102

URL: http://svn.apache.org/viewvc?rev=782102&view=rev
Log:
Javadoc fix

Modified:
    httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/conn/tsccm/ThreadSafeClientConnManager.java

Modified: httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/conn/tsccm/ThreadSafeClientConnManager.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/conn/tsccm/ThreadSafeClientConnManager.java?rev=782102&r1=782101&r2=782102&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/conn/tsccm/ThreadSafeClientConnManager.java (original)
+++ httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/conn/tsccm/ThreadSafeClientConnManager.java Fri Jun  5 19:11:44 2009
@@ -90,9 +90,8 @@
     /**
      * Creates a new thread safe connection manager.
      *
-     * @param params    the parameters for this manager
-     * @param schreg    the scheme registry, or
-     *                  <code>null</code> for the default registry
+     * @param params    the parameters for this manager.
+     * @param schreg    the scheme registry.
      */
     public ThreadSafeClientConnManager(HttpParams params,
                                        SchemeRegistry schreg) {
@@ -100,6 +99,9 @@
         if (params == null) {
             throw new IllegalArgumentException("HTTP parameters may not be null");
         }
+        if (schreg == null) {
+            throw new IllegalArgumentException("Scheme registry may not be null");
+        }
         this.schemeRegistry = schreg;
         this.connOperator   = createConnectionOperator(schreg);
         this.connectionPool = createConnectionPool(params);
@@ -138,7 +140,7 @@
      * The default implementation here instantiates
      * {@link DefaultClientConnectionOperator DefaultClientConnectionOperator}.
      *
-     * @param schreg    the scheme registry to use, or <code>null</code>
+     * @param schreg    the scheme registry.
      *
      * @return  the connection operator to use
      */