Modify rule S4830: fix example code identation for Kotlin (#1108)

This commit is contained in:
chrislain-razafimahefa-sonarsource 2022-07-18 15:49:45 +02:00 committed by GitHub
parent df991add46
commit 80c96e375e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,12 +9,12 @@ include::../description.adoc[]
// Create a trust manager that does not validate certificate chains
val trustAllCerts = arrayOf<TrustManager>(object : X509TrustManager {
@Throws(CertificateException::class)
override fun checkClientTrusted(chain: Array<java.security.cert.X509Certificate>, authType: String) {
override fun checkClientTrusted(chain: Array<java.security.cert.X509Certificate>, authType: String) {
} // Noncompliant (s4830)
@Throws(CertificateException::class)
override fun checkServerTrusted(chain: Array<java.security.cert.X509Certificate>, authType: String) {
} // Noncompliant (s4830)
override fun checkServerTrusted(chain: Array<java.security.cert.X509Certificate>, authType: String) {
} // Noncompliant (s4830)
override fun getAcceptedIssuers(): Array<java.security.cert.X509Certificate> {
return arrayOf()