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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]