"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "httpclient/src/main/java/org/apache/http/conn/scheme/SocketFactoryAdaptor.java" between
httpcomponents-client-4.5.6-src.tar.gz and httpcomponents-client-4.5.7-src.tar.gz

About: HttpComponents is an Apache project responsible for creating and maintaining a toolset of low level Java components focused on HTTP and associated protocols. Java sources.

SocketFactoryAdaptor.java  (httpcomponents-client-4.5.6-src):SocketFactoryAdaptor.java  (httpcomponents-client-4.5.7-src)
skipping to change at line 40 skipping to change at line 40
import java.io.IOException; import java.io.IOException;
import java.net.InetAddress; import java.net.InetAddress;
import java.net.InetSocketAddress; import java.net.InetSocketAddress;
import java.net.Socket; import java.net.Socket;
import java.net.UnknownHostException; import java.net.UnknownHostException;
import org.apache.http.conn.ConnectTimeoutException; import org.apache.http.conn.ConnectTimeoutException;
import org.apache.http.params.BasicHttpParams; import org.apache.http.params.BasicHttpParams;
import org.apache.http.params.HttpParams; import org.apache.http.params.HttpParams;
/**
* @deprecated Do not use.
*/
@Deprecated @Deprecated
class SocketFactoryAdaptor implements SocketFactory { class SocketFactoryAdaptor implements SocketFactory {
private final SchemeSocketFactory factory; private final SchemeSocketFactory factory;
SocketFactoryAdaptor(final SchemeSocketFactory factory) { SocketFactoryAdaptor(final SchemeSocketFactory factory) {
super(); super();
this.factory = factory; this.factory = factory;
} }
skipping to change at line 88 skipping to change at line 91
} }
@Override @Override
public boolean equals(final Object obj) { public boolean equals(final Object obj) {
if (obj == null) { if (obj == null) {
return false; return false;
} }
if (this == obj) { if (this == obj) {
return true; return true;
} }
if (obj instanceof SocketFactoryAdaptor) { return obj instanceof SocketFactoryAdaptor
return this.factory.equals(((SocketFactoryAdaptor)obj).factory); ? this.factory.equals(((SocketFactoryAdaptor) obj).facto
} else { ry)
return this.factory.equals(obj); : this.factory.equals(obj);
}
} }
@Override @Override
public int hashCode() { public int hashCode() {
return this.factory.hashCode(); return this.factory.hashCode();
} }
} }
 End of changes. 2 change blocks. 
5 lines changed or deleted 7 lines changed or added

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