mirror of
https://github.com/corda/corda.git
synced 2025-04-11 21:31:44 +00:00
Expose SerializedBytes.from in the API
This commit is contained in:
parent
2d043828a0
commit
349d9a5ffe
@ -300,13 +300,8 @@ class SerializedBytes<T : Any>(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 <T : Any> from(obj: T, serializationFactory: SerializationFactory = SerializationFactory.defaultFactory,
|
||||
context: SerializationContext = serializationFactory.defaultContext): SerializedBytes<T> {
|
||||
|
Loading…
x
Reference in New Issue
Block a user