"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "httpclient5/src/main/java/org/apache/hc/client5/http/RouteTracker.java" between
httpcomponents-client-5.2-src.tar.gz and httpcomponents-client-5.2.1-src.tar.gz

About: Apache HttpComponents Client provides reusable components for client-side authentication, HTTP state management, and HTTP connection management. Java sources.

RouteTracker.java  (httpcomponents-client-5.2-src):RouteTracker.java  (httpcomponents-client-5.2.1-src)
skipping to change at line 31 skipping to change at line 31
* This software consists of voluntary contributions made by many * This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation. For more * individuals on behalf of the Apache Software Foundation. For more
* information on the Apache Software Foundation, please see * information on the Apache Software Foundation, please see
* <http://www.apache.org/>. * <http://www.apache.org/>.
* *
*/ */
package org.apache.hc.client5.http; package org.apache.hc.client5.http;
import java.net.InetAddress; import java.net.InetAddress;
import java.util.Objects;
import org.apache.hc.core5.http.HttpHost; import org.apache.hc.core5.http.HttpHost;
import org.apache.hc.core5.util.Args; import org.apache.hc.core5.util.Args;
import org.apache.hc.core5.util.Asserts; import org.apache.hc.core5.util.Asserts;
import org.apache.hc.core5.util.LangUtils; import org.apache.hc.core5.util.LangUtils;
/** /**
* Helps tracking the steps in establishing a route. * Helps tracking the steps in establishing a route.
* *
* @since 4.0 * @since 4.0
skipping to change at line 297 skipping to change at line 298
return false; return false;
} }
final RouteTracker that = (RouteTracker) o; final RouteTracker that = (RouteTracker) o;
return return
// Do the cheapest checks first // Do the cheapest checks first
(this.connected == that.connected) && (this.connected == that.connected) &&
(this.secure == that.secure) && (this.secure == that.secure) &&
(this.tunnelled == that.tunnelled) && (this.tunnelled == that.tunnelled) &&
(this.layered == that.layered) && (this.layered == that.layered) &&
LangUtils.equals(this.targetHost, that.targetHost) && Objects.equals(this.targetHost, that.targetHost) &&
LangUtils.equals(this.localAddress, that.localAddress) && Objects.equals(this.localAddress, that.localAddress) &&
LangUtils.equals(this.proxyChain, that.proxyChain); Objects.equals(this.proxyChain, that.proxyChain);
} }
/** /**
* Generates a hash code for this tracked route. * Generates a hash code for this tracked route.
* Route trackers are modifiable and should therefore not be used * Route trackers are modifiable and should therefore not be used
* as lookup keys. Use {@link #toRoute toRoute} to obtain an * as lookup keys. Use {@link #toRoute toRoute} to obtain an
* unmodifiable representation of the tracked route. * unmodifiable representation of the tracked route.
* *
* @return the hash code * @return the hash code
*/ */
 End of changes. 2 change blocks. 
3 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)