From effe3abe30ec70cbca54d6894fd05ba6ffb421fb Mon Sep 17 00:00:00 2001 From: Sebastian Bazley Date: Sat, 1 May 2010 16:19:18 +0000 Subject: [PATCH] Stop warning about deliberate unnecessary cast git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@940070 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/java/org/apache/http/conn/ssl/SSLSocketFactory.java | 1 + 1 file changed, 1 insertion(+) diff --git a/httpclient/src/main/java/org/apache/http/conn/ssl/SSLSocketFactory.java b/httpclient/src/main/java/org/apache/http/conn/ssl/SSLSocketFactory.java index 9c77b90ca..301cffba8 100644 --- a/httpclient/src/main/java/org/apache/http/conn/ssl/SSLSocketFactory.java +++ b/httpclient/src/main/java/org/apache/http/conn/ssl/SSLSocketFactory.java @@ -337,6 +337,7 @@ private SSLSocketFactory() { /** * @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();