Fixed unnecessary non-null assertions
This commit is contained in:
parent
990652288e
commit
c4ddfe8675
@ -199,7 +199,7 @@ open class Client<CONNECTION : Connection>(
|
||||
private var connection0: CONNECTION? = null
|
||||
|
||||
private val string0: String by lazy {
|
||||
"EndPoint [Client: $${storage.publicKey!!.toHexString()}]"
|
||||
"EndPoint [Client: $${storage.publicKey.toHexString()}]"
|
||||
}
|
||||
|
||||
final override fun newException(message: String, cause: Throwable?): Throwable {
|
||||
|
@ -117,7 +117,7 @@ internal class CryptoManagement(val logger: KLogger,
|
||||
this.publicKey = keyFactory.generatePublic(XECPublicKeySpec(X25519KeySpec, BigInteger(publicKeyBytes))) as XECPublicKey
|
||||
this.privateKey = keyFactory.generatePrivate(XECPrivateKeySpec(X25519KeySpec, privateKeyBytes)) as XECPrivateKey
|
||||
|
||||
this.privateKeyBytes = privateKeyBytes!!
|
||||
this.privateKeyBytes = privateKeyBytes
|
||||
this.publicKeyBytes = publicKeyBytes
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user