hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r360542 - /jakarta/httpcomponents/trunk/http-core/src/java/org/apache/http/protocol/AbstractHttpProcessor.java
Date Sun, 01 Jan 2006 20:25:36 GMT
Author: olegk
Date: Sun Jan  1 12:23:51 2006
New Revision: 360542

URL: http://svn.apache.org/viewcvs?rev=360542&view=rev
Log:
Changed the underlying collection that holds interceptors from Set to List

Modified:
    jakarta/httpcomponents/trunk/http-core/src/java/org/apache/http/protocol/AbstractHttpProcessor.java

Modified: jakarta/httpcomponents/trunk/http-core/src/java/org/apache/http/protocol/AbstractHttpProcessor.java
URL: http://svn.apache.org/viewcvs/jakarta/httpcomponents/trunk/http-core/src/java/org/apache/http/protocol/AbstractHttpProcessor.java?rev=360542&r1=360541&r2=360542&view=diff
==============================================================================
--- jakarta/httpcomponents/trunk/http-core/src/java/org/apache/http/protocol/AbstractHttpProcessor.java
(original)
+++ jakarta/httpcomponents/trunk/http-core/src/java/org/apache/http/protocol/AbstractHttpProcessor.java
Sun Jan  1 12:23:51 2006
@@ -30,9 +30,9 @@
 package org.apache.http.protocol;
 
 import java.io.IOException;
-import java.util.HashSet;
+import java.util.ArrayList;
 import java.util.Iterator;
-import java.util.Set;
+import java.util.List;
 
 import org.apache.http.HttpException;
 import org.apache.http.HttpMutableRequest;
@@ -53,7 +53,7 @@
 
     private final HttpContext localContext;
     
-    private Set interceptors = null; 
+    private List interceptors = null; 
     
     public AbstractHttpProcessor(final HttpContext localContext) {
         super();
@@ -65,7 +65,7 @@
             return;
         }
         if (this.interceptors == null) {
-            this.interceptors = new HashSet();
+            this.interceptors = new ArrayList();
         }
         this.interceptors.add(obj);
     }
@@ -113,7 +113,7 @@
         }
     }
     
-    public void setInterceptors(final Set interceptors) {
+    public void setInterceptors(final List interceptors) {
         if (interceptors == null) {
             return;
         }
@@ -121,7 +121,7 @@
             this.interceptors.clear();
             this.interceptors.addAll(interceptors);
         } else {
-            this.interceptors = new HashSet(interceptors);
+            this.interceptors = new ArrayList(interceptors);
         }
     }
     



Mime
View raw message