Make schemeRegistry final. This makes the class ThreadSafe
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@756183 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ac3eefa92a
commit
f97f49b471
|
@ -36,6 +36,8 @@ import java.net.ConnectException;
|
|||
import java.net.Socket;
|
||||
import java.net.InetAddress;
|
||||
|
||||
import net.jcip.annotations.ThreadSafe;
|
||||
|
||||
import org.apache.http.HttpHost;
|
||||
import org.apache.http.params.HttpParams;
|
||||
import org.apache.http.params.HttpConnectionParams;
|
||||
|
@ -63,12 +65,13 @@ import org.apache.http.conn.scheme.SocketFactory;
|
|||
*
|
||||
* @since 4.0
|
||||
*/
|
||||
@ThreadSafe
|
||||
public class DefaultClientConnectionOperator
|
||||
implements ClientConnectionOperator {
|
||||
|
||||
|
||||
/** The scheme registry for looking up socket factories. */
|
||||
protected SchemeRegistry schemeRegistry;
|
||||
protected final SchemeRegistry schemeRegistry; // @ThreadSafe
|
||||
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue