remm 2003/01/30 06:22:15
Modified: coyote/src/java/org/apache/coyote/tomcat5 CoyoteRequest.java
Log:
- Improve code.
Revision Changes Path
1.19 +6 -7
jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat5/CoyoteRequest.java
Index: CoyoteRequest.java
===================================================================
RCS file:
/home/cvs/jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat5/CoyoteRequest.java,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- CoyoteRequest.java 29 Jan 2003 20:57:28 -0000 1.18
+++ CoyoteRequest.java 30 Jan 2003 14:22:15 -0000 1.19
@@ -1293,12 +1293,11 @@
if (readOnlyAttributes.containsKey(name)) {
return;
}
- oldValue = attributes.get(name);
+
+ oldValue = attributes.put(name, value);
if (oldValue != null) {
replaced = true;
}
-
- attributes.put(name, value);
// Notify interested application event listeners
Object listeners[] = context.getApplicationListeners();
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]