Fix checkstyle problem.
Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
This commit is contained in:
parent
ea3d36110d
commit
70c2e5213c
|
@ -48,8 +48,8 @@ class SubsonicApiSSLTest {
|
|||
cert = (CertificateFactory.getInstance("X.509")
|
||||
.generateCertificate(certificatePemStream)) as X509Certificate
|
||||
}
|
||||
val alias = cert?.subjectX500Principal?.name ?:
|
||||
throw IllegalStateException("Failed to load certificate")
|
||||
val alias = cert?.subjectX500Principal?.name
|
||||
?: throw IllegalStateException("Failed to load certificate")
|
||||
trustStore.setCertificateEntry(alias, cert)
|
||||
|
||||
val tmf = TrustManagerFactory.getInstance("X509")
|
||||
|
|
Loading…
Reference in New Issue