mirror of
https://github.com/corda/corda.git
synced 2024-12-21 22:07:55 +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:
parent
49c23a58d1
commit
4d54d1a8dc
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user