Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0b182063 authored by Ricki Hirner's avatar Ricki Hirner
Browse files

Use singleton objects instead of companion objects whenever possible

parent 83ba9b50
Loading
Loading
Loading
Loading
+20 −22
Original line number Diff line number Diff line
@@ -15,8 +15,7 @@ import java.util.logging.Level
import javax.net.ssl.TrustManagerFactory
import javax.net.ssl.X509TrustManager

class CertUtils {
    companion object {
object CertUtils {

    @JvmStatic
    fun getTrustManager(keyStore: KeyStore?): X509TrustManager? {
@@ -41,4 +40,3 @@ class CertUtils {
    }

}
}
+5 −7
Original line number Diff line number Diff line
@@ -10,8 +10,7 @@ package at.bitfire.cert4android

import java.util.logging.Logger

class Constants {
    companion object {
object Constants {

    @JvmField
    var log: Logger = Logger.getLogger("cert4android")
@@ -20,4 +19,3 @@ class Constants {
    val NOTIFICATION_CERT_DECISION = 88809

}
}