Skip to content

Commit a0f8356

Browse files
Added @CordaSerializable to TypeReference
1 parent 8952577 commit a0f8356

File tree

1 file changed

+2
-0
lines changed
  • onixlabs-corda-core-contract/src/main/kotlin/io/onixlabs/corda/core

1 file changed

+2
-0
lines changed

onixlabs-corda-core-contract/src/main/kotlin/io/onixlabs/corda/core/TypeReference.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
package io.onixlabs.corda.core
1818

19+
import net.corda.core.serialization.CordaSerializable
1920
import java.lang.reflect.ParameterizedType
2021
import java.lang.reflect.Type
2122

@@ -29,6 +30,7 @@ import java.lang.reflect.Type
2930
* @property type The actual underlying type.
3031
* @property arguments The actual generic argument types of the underlying type.
3132
*/
33+
@CordaSerializable
3234
abstract class TypeReference<T> : Comparable<TypeReference<T>> {
3335

3436
val type: Type get() = getGenericType()

0 commit comments

Comments
 (0)