Removed unchecked cast suppression
This commit is contained in:
parent
ec5dd55fee
commit
bb77a17158
@ -411,7 +411,6 @@ open class Client<CONNECTION : Connection>(config: Configuration = Configuration
|
|||||||
remoteAddress!!
|
remoteAddress!!
|
||||||
|
|
||||||
// VALIDATE are we allowed to connect to this server (now that we have the initial server information)
|
// VALIDATE are we allowed to connect to this server (now that we have the initial server information)
|
||||||
@Suppress("UNCHECKED_CAST")
|
|
||||||
val permitConnection = listenerManager.notifyFilter(newConnection)
|
val permitConnection = listenerManager.notifyFilter(newConnection)
|
||||||
if (!permitConnection) {
|
if (!permitConnection) {
|
||||||
handshakeConnection.close()
|
handshakeConnection.close()
|
||||||
|
@ -29,11 +29,7 @@ import dorkbox.network.connection.Connection
|
|||||||
import dorkbox.network.connection.ConnectionParams
|
import dorkbox.network.connection.ConnectionParams
|
||||||
import dorkbox.network.connection.ListenerManager
|
import dorkbox.network.connection.ListenerManager
|
||||||
import dorkbox.network.connection.PublicKeyValidationState
|
import dorkbox.network.connection.PublicKeyValidationState
|
||||||
import dorkbox.network.exceptions.AllocationException
|
import dorkbox.network.exceptions.*
|
||||||
import dorkbox.network.exceptions.ClientException
|
|
||||||
import dorkbox.network.exceptions.ClientRejectedException
|
|
||||||
import dorkbox.network.exceptions.ClientTimedOutException
|
|
||||||
import dorkbox.network.exceptions.ServerException
|
|
||||||
import io.aeron.Aeron
|
import io.aeron.Aeron
|
||||||
import io.aeron.Publication
|
import io.aeron.Publication
|
||||||
import kotlinx.coroutines.CoroutineScope
|
import kotlinx.coroutines.CoroutineScope
|
||||||
@ -293,7 +289,6 @@ internal class ServerHandshake<CONNECTION : Connection>(private val logger: KLog
|
|||||||
val connection = server.newConnection(ConnectionParams(server, clientConnection, PublicKeyValidationState.VALID))
|
val connection = server.newConnection(ConnectionParams(server, clientConnection, PublicKeyValidationState.VALID))
|
||||||
|
|
||||||
// VALIDATE:: are we allowed to connect to this server (now that we have the initial server information)
|
// VALIDATE:: are we allowed to connect to this server (now that we have the initial server information)
|
||||||
@Suppress("UNCHECKED_CAST")
|
|
||||||
val permitConnection = listenerManager.notifyFilter(connection)
|
val permitConnection = listenerManager.notifyFilter(connection)
|
||||||
if (!permitConnection) {
|
if (!permitConnection) {
|
||||||
// have to unwind actions!
|
// have to unwind actions!
|
||||||
@ -476,7 +471,6 @@ internal class ServerHandshake<CONNECTION : Connection>(private val logger: KLog
|
|||||||
val connection = server.newConnection(ConnectionParams(server, clientConnection, validateRemoteAddress))
|
val connection = server.newConnection(ConnectionParams(server, clientConnection, validateRemoteAddress))
|
||||||
|
|
||||||
// VALIDATE:: are we allowed to connect to this server (now that we have the initial server information)
|
// VALIDATE:: are we allowed to connect to this server (now that we have the initial server information)
|
||||||
@Suppress("UNCHECKED_CAST")
|
|
||||||
val permitConnection = listenerManager.notifyFilter(connection)
|
val permitConnection = listenerManager.notifyFilter(connection)
|
||||||
if (!permitConnection) {
|
if (!permitConnection) {
|
||||||
// have to unwind actions!
|
// have to unwind actions!
|
||||||
|
Loading…
Reference in New Issue
Block a user