corda / net.corda.core.serialization / DeprecatedConstructorForDeserialization

DeprecatedConstructorForDeserialization

@Target([AnnotationTarget.CONSTRUCTOR]) annotation class DeprecatedConstructorForDeserialization

This annotation is a marker to indicate which secondary constructors should be considered, and in which order, for evolving objects during their deserialization.

Versions will be considered in descending order, currently duplicate versions will result in non deterministic behaviour when deserializing objects

Constructors

<init>

DeprecatedConstructorForDeserialization(version: Int)

This annotation is a marker to indicate which secondary constructors should be considered, and in which order, for evolving objects during their deserialization.

Properties

version

val version: Int

Extension Functions

contextLogger

fun Any.contextLogger(): Logger

When called from a companion object, returns the logger for the enclosing class.