diff --git a/src/dorkbox/network/rmi/messages/RmiClientRequestSerializer.kt b/src/dorkbox/network/rmi/messages/RmiClientRequestSerializer.kt index 6280f0bc..bf88f0e8 100644 --- a/src/dorkbox/network/rmi/messages/RmiClientRequestSerializer.kt +++ b/src/dorkbox/network/rmi/messages/RmiClientRequestSerializer.kt @@ -25,7 +25,8 @@ import java.lang.reflect.Proxy /** * this is to manage serializing proxy object objects across the wire... - * SO the server sends an RMI object, and the client reads an RMI object + * + * SO the "rmi client" sends an RMI proxy object, and the "rmi server" reads an actual object */ class RmiClientRequestSerializer : Serializer() { override fun write(kryo: Kryo, output: Output, proxyObject: Any) { @@ -37,8 +38,8 @@ class RmiClientRequestSerializer : Serializer() { override fun read(kryo: Kryo, input: Input, type: Class<*>?): Any? { val isGlobal = input.readBoolean() val objectId = input.readInt(true) - kryo as KryoExtra + kryo as KryoExtra val connection = kryo.connection return connection.endPoint().rmiGlobalSupport.getImplObject(isGlobal, objectId, connection) }