From 349d9a5ffed75795e2ac16b7bc351e4d5e0ee433 Mon Sep 17 00:00:00 2001 From: Mike Hearn Date: Mon, 19 Nov 2018 13:39:07 +0100 Subject: [PATCH] Expose SerializedBytes.from in the API --- .../kotlin/net/corda/core/serialization/SerializationAPI.kt | 5 ----- 1 file changed, 5 deletions(-) diff --git a/core/src/main/kotlin/net/corda/core/serialization/SerializationAPI.kt b/core/src/main/kotlin/net/corda/core/serialization/SerializationAPI.kt index 941617ba04..4ef133d341 100644 --- a/core/src/main/kotlin/net/corda/core/serialization/SerializationAPI.kt +++ b/core/src/main/kotlin/net/corda/core/serialization/SerializationAPI.kt @@ -300,13 +300,8 @@ class SerializedBytes(bytes: ByteArray) : OpaqueBytes(bytes) { /** * Serializes the given object and returns a [SerializedBytes] wrapper for it. An alias for [Any.serialize] * intended to make the calling smoother for Java users. - * - * TODO: Take out the @CordaInternal annotation post-Enterprise GA when we can add API again. - * - * @suppress */ @JvmStatic - @CordaInternal @JvmOverloads fun from(obj: T, serializationFactory: SerializationFactory = SerializationFactory.defaultFactory, context: SerializationContext = serializationFactory.defaultContext): SerializedBytes {