hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rola...@apache.org
Subject svn commit: r603610 - /jakarta/httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/conn/params/HttpConnectionManagerParams.java
Date Wed, 12 Dec 2007 13:29:58 GMT
Author: rolandw
Date: Wed Dec 12 05:29:55 2007
New Revision: 603610

URL: http://svn.apache.org/viewvc?rev=603610&view=rev
Log:
remove last two generics warnings from API part of the code

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

Modified: jakarta/httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/conn/params/HttpConnectionManagerParams.java
URL: http://svn.apache.org/viewvc/jakarta/httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/conn/params/HttpConnectionManagerParams.java?rev=603610&r1=603609&r2=603610&view=diff
==============================================================================
--- jakarta/httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/conn/params/HttpConnectionManagerParams.java
(original)
+++ jakarta/httpcomponents/httpclient/trunk/module-client/src/main/java/org/apache/http/conn/params/HttpConnectionManagerParams.java
Wed Dec 12 05:29:55 2007
@@ -114,15 +114,15 @@
                 ("The maximum must be greater than 0.");
         }
         
-        Map<Object,Integer> currentValues = (Map<Object,Integer>)
-            params.getParameter(ConnManagerPNames.MAX_HOST_CONNECTIONS);
+        Map<?,?> currentValues = (Map) params.getParameter
+            (ConnManagerPNames.MAX_HOST_CONNECTIONS);
         // param values are meant to be immutable so we'll make a copy
         // to modify
-        Map<Object,Integer> newValues = null;
+        Map<Object,Object> newValues = null;
         if (currentValues == null) {
-            newValues = new HashMap<Object,Integer>();
+            newValues = new HashMap<Object,Object>();
         } else {
-            newValues = new HashMap<Object,Integer>(currentValues);
+            newValues = new HashMap<Object,Object>(currentValues);
         }
         newValues.put(key, new Integer(max));
         params.setParameter(ConnManagerPNames.MAX_HOST_CONNECTIONS, newValues);
@@ -183,10 +183,10 @@
         // if neither a specific nor a default maximum is configured...
         int result = DEFAULT_MAX_HOST_CONNECTIONS;
 
-        Map<Object,Integer> m = (Map<Object,Integer>)
-            params.getParameter(ConnManagerPNames.MAX_HOST_CONNECTIONS);
+        Map<?,?> m = (Map) params.getParameter
+            (ConnManagerPNames.MAX_HOST_CONNECTIONS);
         if (m != null) {
-            Integer max = m.get(key);
+            Integer max = (Integer) m.get(key);
             if ((max == null) && (key != ROUTE_DEFAULT)) {
                 // no specific maximum, get the configured default
                 max = (Integer) m.get(ROUTE_DEFAULT);



Mime
View raw message