You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by ol...@apache.org on 2004/07/19 22:37:43 UTC
cvs commit: jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/params HttpConnectionManagerParams.java
olegk 2004/07/19 13:37:43
Modified: httpclient/src/java/org/apache/commons/httpclient/params
HttpConnectionManagerParams.java
Log:
Removed Java 1.3 dependent code
Contributed by Oleg Kalnichevski
Revision Changes Path
1.8 +10 -5 jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/params/HttpConnectionManagerParams.java
Index: HttpConnectionManagerParams.java
===================================================================
RCS file: /home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/params/HttpConnectionManagerParams.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- HttpConnectionManagerParams.java 17 Jul 2004 18:58:33 -0000 1.7
+++ HttpConnectionManagerParams.java 19 Jul 2004 20:37:43 -0000 1.8
@@ -107,7 +107,12 @@
Map currentValues = (Map) getParameter(MAX_HOST_CONNECTIONS);
// param values are meant to be immutable so we'll make a copy
// to modify
- Map newValues = new HashMap(currentValues == null ? Collections.EMPTY_MAP : currentValues);
+ Map newValues = null;
+ if (currentValues == null) {
+ newValues = new HashMap();
+ } else {
+ newValues = new HashMap(currentValues);
+ }
newValues.put(hostConfiguration, new Integer(maxHostConnections));
setParameter(MAX_HOST_CONNECTIONS, newValues);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org