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:
Katelyn Baker 2017-08-16 11:39:07 +01:00
parent 49c23a58d1
commit 4d54d1a8dc

View File

@ -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)