From c1c6ba636a55659bffd095501672d8b5f57ec65e Mon Sep 17 00:00:00 2001 From: Oleg Kalnichevski Date: Fri, 2 Apr 2010 18:54:49 +0000 Subject: [PATCH] Renamed instance vars git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@930353 13f79535-47bb-0310-9956-ffa450edef68 --- .../http/impl/client/RedirectLocations.java | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/httpclient/src/main/java/org/apache/http/impl/client/RedirectLocations.java b/httpclient/src/main/java/org/apache/http/impl/client/RedirectLocations.java index f842a9cf9..0a80d1301 100644 --- a/httpclient/src/main/java/org/apache/http/impl/client/RedirectLocations.java +++ b/httpclient/src/main/java/org/apache/http/impl/client/RedirectLocations.java @@ -44,37 +44,37 @@ import org.apache.http.annotation.NotThreadSafe; @NotThreadSafe // HashSet is not synch. public class RedirectLocations { - private final Set uris; - private final List log; + private final Set unique; + private final List all; public RedirectLocations() { super(); - this.uris = new HashSet(); - this.log = new ArrayList(); + this.unique = new HashSet(); + this.all = new ArrayList(); } /** * 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 it = this.log.iterator(); + Iterator 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 getAll() { - return new ArrayList(this.log); + return new ArrayList(this.all); } }