hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r652193 - /httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/impl/conn/DefaultClientConnectionOperator.java
Date Wed, 30 Apr 2008 00:10:36 GMT
Author: sebb
Date: Tue Apr 29 17:10:36 2008
New Revision: 652193

URL: http://svn.apache.org/viewvc?rev=652193&view=rev
Log:
schm cannot be null

Modified:
    httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/impl/conn/DefaultClientConnectionOperator.java

Modified: httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/impl/conn/DefaultClientConnectionOperator.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/impl/conn/DefaultClientConnectionOperator.java?rev=652193&r1=652192&r2=652193&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/impl/conn/DefaultClientConnectionOperator.java
(original)
+++ httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/impl/conn/DefaultClientConnectionOperator.java
Tue Apr 29 17:10:36 2008
@@ -120,11 +120,6 @@
         }
 
         final Scheme schm = schemeRegistry.getScheme(target.getSchemeName());
-        if (schm == null) {
-            throw new IllegalArgumentException
-                ("Unknown scheme '" + target.getSchemeName() +
-                 "' in target host.");
-        }
         final SocketFactory sf = schm.getSocketFactory();
 
         Socket sock = sf.createSocket();
@@ -169,11 +164,6 @@
         }
 
         final Scheme schm = schemeRegistry.getScheme(target.getSchemeName());
-        if (schm == null) {
-            throw new IllegalArgumentException
-                ("Unknown scheme '" + target.getSchemeName() +
-                 "' in target host.");
-        }
         if (!(schm.getSocketFactory() instanceof LayeredSocketFactory)) {
             throw new IllegalArgumentException
                 ("Target scheme (" + schm.getName() +



Mime
View raw message