mirror of
https://github.com/corda/corda.git
synced 2025-06-13 12:48:18 +00:00
Converted sealed data types to be data classes
This commit is contained in:
@ -9,8 +9,8 @@ import java.nio.file.FileSystems
|
||||
import java.nio.file.Path
|
||||
|
||||
sealed class ConnectionDirection {
|
||||
class Inbound(val acceptorFactoryClassName: String) : ConnectionDirection()
|
||||
class Outbound(
|
||||
data class Inbound(val acceptorFactoryClassName: String) : ConnectionDirection()
|
||||
data class Outbound(
|
||||
val expectedCommonName: String? = null,
|
||||
val connectorFactoryClassName: String = NettyConnectorFactory::class.java.name
|
||||
) : ConnectionDirection()
|
||||
|
Reference in New Issue
Block a user