mirror of
https://github.com/corda/corda.git
synced 2025-06-14 21:28:14 +00:00
Review Comments
Removing unused default method on the factory, it was added for testing although given there are easier ways to build factories for the tests it was never used and doesn't need leaving in
This commit is contained in:
@ -46,13 +46,6 @@ abstract class AbstractAMQPSerializationScheme : SerializationScheme {
|
||||
}.also { registerCustomSerializers(it) }
|
||||
}
|
||||
|
||||
fun getSerializerFactory(): SerializerFactory {
|
||||
return serializerFactoriesForContexts.computeIfAbsent(Pair(
|
||||
AllWhitelist, SerializationDefaults.javaClass.classLoader)) {
|
||||
SerializerFactory(AllWhitelist, SerializationDefaults.javaClass.classLoader)
|
||||
}
|
||||
}
|
||||
|
||||
override fun <T : Any> deserialize(byteSequence: ByteSequence, clazz: Class<T>, context: SerializationContext): T {
|
||||
val serializerFactory = getSerializerFactory(context)
|
||||
return DeserializationInput(serializerFactory).deserialize(byteSequence, clazz)
|
||||
|
Reference in New Issue
Block a user