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:
Sebastian Bazley 2010-05-01 16:19:18 +00:00
parent 955f47e6f5
commit effe3abe30
1 changed files with 1 additions and 0 deletions

View File

@ -337,6 +337,7 @@ public class SSLSocketFactory implements LayeredSchemeSocketFactory, LayeredSock
/**
* @since 4.1
*/
@SuppressWarnings("cast")
public Socket createSocket(final HttpParams params) throws IOException {
// the cast makes sure that the factory is working as expected
return (SSLSocket) this.socketfactory.createSocket();