Skip to content

Commit fe923fa

Browse files
committed
Java: Move comments to separate lines.
Move comments to separate lines to improve the rendering in the finished query help.
1 parent f527df7 commit fe923fa

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

java/ql/src/Security/CWE/CWE-295/InsecureTrustManager.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,12 @@ public void checkClientTrusted(X509Certificate[] chain, String authType) throws
3939
// Use it with our key store that trusts our self-signed certificate
4040
tmf.init(keyStore);
4141
TrustManager[] trustManagers = tmf.getTrustManagers();
42-
context.init(null, trustManagers, null); // GOOD, we are not using a custom `TrustManager` but instead have
43-
// added the self-signed certificate we want to trust to the key
44-
// store. Note, the `trustManagers` will **only** trust this one
45-
// certificate.
42+
context.init(null, trustManagers, null);
43+
// GOOD, we are not using a custom `TrustManager` but instead have
44+
// added the self-signed certificate we want to trust to the key
45+
// store. Note, the `trustManagers` will **only** trust this one
46+
// certificate.
47+
4648
URL url = new URL("https://self-signed.badssl.com/");
4749
HttpsURLConnection conn = (HttpsURLConnection) url.openConnection();
4850
conn.setSSLSocketFactory(context.getSocketFactory());

0 commit comments

Comments
 (0)