Skip to content

Commit fba8192

Browse files
author
Stephane Landelle
committed
format
1 parent 5ec89ae commit fba8192

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/main/java/com/ning/http/util/SslUtils.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,20 +40,20 @@ public void checkServerTrusted(java.security.cert.X509Certificate[] certs, Strin
4040
}
4141
}
4242

43-
private SSLContext looseTrustManagerSSLContext = looseTrustManagerSSLContext();
44-
43+
private SSLContext looseTrustManagerSSLContext = looseTrustManagerSSLContext();
44+
4545
private SSLContext looseTrustManagerSSLContext() {
4646
try {
4747
SSLContext sslContext = SSLContext.getInstance("TLS");
4848
sslContext.init(null, new TrustManager[] { new LooseTrustManager() }, new SecureRandom());
4949
return sslContext;
5050
} catch (NoSuchAlgorithmException e) {
51-
throw new ExceptionInInitializerError(e);
51+
throw new ExceptionInInitializerError(e);
5252
} catch (KeyManagementException e) {
5353
throw new ExceptionInInitializerError(e);
5454
}
5555
}
56-
56+
5757
private static class SingletonHolder {
5858
public static final SslUtils instance = new SslUtils();
5959
}
@@ -63,6 +63,6 @@ public static SslUtils getInstance() {
6363
}
6464

6565
public SSLContext getSSLContext(boolean acceptAnyCertificate) throws GeneralSecurityException, IOException {
66-
return acceptAnyCertificate? looseTrustManagerSSLContext: SSLContext.getDefault();
66+
return acceptAnyCertificate ? looseTrustManagerSSLContext : SSLContext.getDefault();
6767
}
6868
}

0 commit comments

Comments
 (0)