Stop warning about deliberate unnecessary cast
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@940070 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
955f47e6f5
commit
effe3abe30
|
@ -337,6 +337,7 @@ public class SSLSocketFactory implements LayeredSchemeSocketFactory, LayeredSock
|
||||||
/**
|
/**
|
||||||
* @since 4.1
|
* @since 4.1
|
||||||
*/
|
*/
|
||||||
|
@SuppressWarnings("cast")
|
||||||
public Socket createSocket(final HttpParams params) throws IOException {
|
public Socket createSocket(final HttpParams params) throws IOException {
|
||||||
// the cast makes sure that the factory is working as expected
|
// the cast makes sure that the factory is working as expected
|
||||||
return (SSLSocket) this.socketfactory.createSocket();
|
return (SSLSocket) this.socketfactory.createSocket();
|
||||||
|
|
Loading…
Reference in New Issue