Code polish

This commit is contained in:
nathan 2019-06-14 12:38:55 +02:00
parent 682a069c19
commit 353164fac5
2 changed files with 3 additions and 12 deletions

View File

@ -610,7 +610,7 @@ class ConnectionImpl extends ChannelInboundHandlerAdapter implements Connection_
}
}
this.logger.info("Closed remote {} connection [{}]",
this.logger.info("Closed {} connection [{}]",
type,
EndPoint.getHostDetails(channel.remoteAddress()));
}

View File

@ -146,7 +146,8 @@ class KryoExtra extends Kryo {
// read the object from the buffer.
readerBuff.setBuffer(buffer);
return readClassAndObject(readerBuff); // this properly sets the readerIndex, but only if it's the correct buffer
// this properly sets the readerIndex, but only if it's the correct buffer
return readClassAndObject(readerBuff);
}
////////////////
@ -467,16 +468,6 @@ class KryoExtra extends Kryo {
return read(connection, reader);
}
@Override
protected
void finalize() throws Throwable {
readerBuff.getByteBuf().release();
writerBuff.getByteBuf().release();
super.finalize();
}
public
NetworkSerializationManager getSerializationManager() {
return serializationManager;