"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "httpclient5/src/main/java/org/apache/hc/client5/http/HttpRoute.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.

HttpRoute.java  (httpcomponents-client-5.2-src):HttpRoute.java  (httpcomponents-client-5.2.1-src)
skipping to change at line 36 skipping to change at line 36
*/ */
package org.apache.hc.client5.http; package org.apache.hc.client5.http;
import java.net.InetAddress; import java.net.InetAddress;
import java.net.InetSocketAddress; import java.net.InetSocketAddress;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Arrays; import java.util.Arrays;
import java.util.Collections; import java.util.Collections;
import java.util.List; import java.util.List;
import java.util.Objects;
import org.apache.hc.core5.annotation.Contract; import org.apache.hc.core5.annotation.Contract;
import org.apache.hc.core5.annotation.ThreadingBehavior; import org.apache.hc.core5.annotation.ThreadingBehavior;
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.LangUtils; import org.apache.hc.core5.util.LangUtils;
/** /**
* Connection route definition for HTTP requests. * Connection route definition for HTTP requests.
* *
skipping to change at line 268 skipping to change at line 269
if (this == obj) { if (this == obj) {
return true; return true;
} }
if (obj instanceof HttpRoute) { if (obj instanceof HttpRoute) {
final HttpRoute that = (HttpRoute) obj; final HttpRoute that = (HttpRoute) obj;
return return
// Do the cheapest tests first // Do the cheapest tests first
(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);
} }
return false; return false;
} }
/** /**
* Generates a hash code for this route. * Generates a hash code for this route.
* *
* @return the hash code * @return the hash code
*/ */
@Override @Override
 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)