hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r930353 - /httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/client/RedirectLocations.java
Date Fri, 02 Apr 2010 18:54:49 GMT
Author: olegk
Date: Fri Apr  2 18:54:49 2010
New Revision: 930353

URL: http://svn.apache.org/viewvc?rev=930353&view=rev
Log:
Renamed instance vars

Modified:
    httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/client/RedirectLocations.java

Modified: httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/client/RedirectLocations.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/client/RedirectLocations.java?rev=930353&r1=930352&r2=930353&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/client/RedirectLocations.java
(original)
+++ httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/client/RedirectLocations.java
Fri Apr  2 18:54:49 2010
@@ -44,37 +44,37 @@ import org.apache.http.annotation.NotThr
 @NotThreadSafe // HashSet is not synch.
 public class RedirectLocations {
 
-    private final Set<URI> uris;
-    private final List<URI> log;
+    private final Set<URI> unique;
+    private final List<URI> all;
     
     public RedirectLocations() {
         super();
-        this.uris = new HashSet<URI>();
-        this.log = new ArrayList<URI>();
+        this.unique = new HashSet<URI>();
+        this.all = new ArrayList<URI>();
     }
     
     /**
      * Test if the URI is present in the collection.
      */
     public boolean contains(final URI uri) {
-        return this.uris.contains(uri);
+        return this.unique.contains(uri);
     }
     
     /**
      * Adds a new URI to the collection.
      */
     public void add(final URI uri) {
-        this.uris.add(uri);
-        this.log.add(uri);
+        this.unique.add(uri);
+        this.all.add(uri);
     }
 
     /**
      * Removes a URI from the collection.
      */
     public boolean remove(final URI uri) {
-        boolean removed = this.uris.remove(uri);
+        boolean removed = this.unique.remove(uri);
         if (removed) {
-            Iterator<URI> it = this.log.iterator();
+            Iterator<URI> it = this.all.iterator();
             while (it.hasNext()) {
                 URI current = it.next();
                 if (current.equals(uri)) {
@@ -93,7 +93,7 @@ public class RedirectLocations {
      * @since 4.1
      */
     public List<URI> getAll() {
-        return new ArrayList<URI>(this.log);
+        return new ArrayList<URI>(this.all);
     }
 
 }



Mime
View raw message