From a056c12a1f768e5e57ea96fc9c86abae91e75e09 Mon Sep 17 00:00:00 2001 From: Oleg Kalnichevski Date: Fri, 5 Jun 2009 19:11:44 +0000 Subject: [PATCH] Javadoc fix git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@782102 13f79535-47bb-0310-9956-ffa450edef68 --- .../impl/conn/tsccm/ThreadSafeClientConnManager.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/httpclient/src/main/java/org/apache/http/impl/conn/tsccm/ThreadSafeClientConnManager.java b/httpclient/src/main/java/org/apache/http/impl/conn/tsccm/ThreadSafeClientConnManager.java index dd1b833f7..be4e6acf7 100644 --- a/httpclient/src/main/java/org/apache/http/impl/conn/tsccm/ThreadSafeClientConnManager.java +++ b/httpclient/src/main/java/org/apache/http/impl/conn/tsccm/ThreadSafeClientConnManager.java @@ -90,9 +90,8 @@ public class ThreadSafeClientConnManager implements ClientConnectionManager { /** * Creates a new thread safe connection manager. * - * @param params the parameters for this manager - * @param schreg the scheme registry, or - * null 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 @@ public class ThreadSafeClientConnManager implements ClientConnectionManager { 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 @@ public class ThreadSafeClientConnManager implements ClientConnectionManager { * The default implementation here instantiates * {@link DefaultClientConnectionOperator DefaultClientConnectionOperator}. * - * @param schreg the scheme registry to use, or null + * @param schreg the scheme registry. * * @return the connection operator to use */