From 0603fc9f3c1be166bb6ccd3c15d277a985ab5f81 Mon Sep 17 00:00:00 2001 From: Roland Weber Date: Wed, 12 Dec 2007 13:29:55 +0000 Subject: [PATCH] remove last two generics warnings from API part of the code git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpclient/trunk@603610 13f79535-47bb-0310-9956-ffa450edef68 --- .../conn/params/HttpConnectionManagerParams.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/module-client/src/main/java/org/apache/http/conn/params/HttpConnectionManagerParams.java b/module-client/src/main/java/org/apache/http/conn/params/HttpConnectionManagerParams.java index e681602b0..c664b651c 100644 --- a/module-client/src/main/java/org/apache/http/conn/params/HttpConnectionManagerParams.java +++ b/module-client/src/main/java/org/apache/http/conn/params/HttpConnectionManagerParams.java @@ -114,15 +114,15 @@ public final class HttpConnectionManagerParams { ("The maximum must be greater than 0."); } - Map currentValues = (Map) - 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 newValues = null; + Map newValues = null; if (currentValues == null) { - newValues = new HashMap(); + newValues = new HashMap(); } else { - newValues = new HashMap(currentValues); + newValues = new HashMap(currentValues); } newValues.put(key, new Integer(max)); params.setParameter(ConnManagerPNames.MAX_HOST_CONNECTIONS, newValues); @@ -183,10 +183,10 @@ public final class HttpConnectionManagerParams { // if neither a specific nor a default maximum is configured... int result = DEFAULT_MAX_HOST_CONNECTIONS; - Map m = (Map) - 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);