hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r617206 - /httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/conn/SchemeRegistry.java
Date Thu, 31 Jan 2008 20:11:48 GMT
Author: sebb
Date: Thu Jan 31 12:11:43 2008
New Revision: 617206

URL: http://svn.apache.org/viewvc?rev=617206&view=rev
Log:
Fix Javadoc complaint and remove unnecessary casts

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

Modified: httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/conn/SchemeRegistry.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/conn/SchemeRegistry.java?rev=617206&r1=617205&r2=617206&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/conn/SchemeRegistry.java
(original)
+++ httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/conn/SchemeRegistry.java
Thu Jan 31 12:11:43 2008
@@ -118,15 +118,15 @@
 
         // leave it to the caller to use the correct name - all lowercase
         //name = name.toLowerCase();
-        Scheme found = (Scheme) registeredSchemes.get(name);
+        Scheme found = registeredSchemes.get(name);
         return found;
     }
 
 
     /**
      * Registers a scheme.
-     * The scheme can later be retrieved by it's name
-     * using {@link #getScheme getScheme} or {@link #get get}.
+     * The scheme can later be retrieved by its name
+     * using {@link #getScheme(String) getScheme} or {@link #get get}.
      *
      * @param sch       the scheme to register
      *
@@ -137,7 +137,7 @@
         if (sch == null)
             throw new IllegalArgumentException("Scheme must not be null.");
 
-        Scheme old = (Scheme) registeredSchemes.put(sch.getName(), sch);
+        Scheme old = registeredSchemes.put(sch.getName(), sch);
         return old;
     }
 
@@ -156,7 +156,7 @@
 
         // leave it to the caller to use the correct name - all lowercase
         //name = name.toLowerCase();
-        Scheme gone = (Scheme) registeredSchemes.remove(name);
+        Scheme gone = registeredSchemes.remove(name);
         return gone;
     }
 



Mime
View raw message