diff --git a/mail/common/src/main/java/com/fsck/k9/mail/CertificateValidationException.kt b/mail/common/src/main/java/com/fsck/k9/mail/CertificateValidationException.kt index 36034512f..4255d2914 100644 --- a/mail/common/src/main/java/com/fsck/k9/mail/CertificateValidationException.kt +++ b/mail/common/src/main/java/com/fsck/k9/mail/CertificateValidationException.kt @@ -1,20 +1,8 @@ -package com.fsck.k9.mail; +package com.fsck.k9.mail -import java.security.cert.X509Certificate; -import java.util.List; +import java.security.cert.X509Certificate -import org.jetbrains.annotations.NotNull; - - -public class CertificateValidationException extends MessagingException { - private final List certificateChain; - - public CertificateValidationException(@NotNull List certificateChain, Throwable cause) { - super(cause); - this.certificateChain = certificateChain; - } - - public List getCertificateChain() { - return certificateChain; - } -} +class CertificateValidationException( + val certificateChain: List, + cause: Throwable?, +) : MessagingException(cause)