Remove comment

This commit is contained in:
Joseph Zuniga-Daly 2020-07-14 15:32:35 +01:00
parent b835de79bd
commit 1fc30fc559

View File

@ -66,8 +66,6 @@ class CustomSerializerCheckpointAdaptor<OBJ, PROXY>(private val userSerializer :
*/
override fun read(kryo: Kryo, input: Input, type: Class<OBJ>): OBJ {
// The cast is to an erased type so we can't do better.
// This will throw a runtime exception when the type is not as expected so it won't allow the wrong thing to happen.
@Suppress("UNCHECKED_CAST")
fun <T> readFromKryo() = kryo.readClassAndObject(input) as T