Better comments
This commit is contained in:
parent
37224b3097
commit
dda6086a2c
@ -122,9 +122,7 @@ class KryoExtra extends Kryo {
|
|||||||
|
|
||||||
public synchronized
|
public synchronized
|
||||||
void writeCrypto(final ConnectionImpl connection, final ByteBuf buffer, final Object message, final Logger logger) throws IOException {
|
void writeCrypto(final ConnectionImpl connection, final ByteBuf buffer, final Object message, final Logger logger) throws IOException {
|
||||||
// connection will ALWAYS be of type Connection
|
// required by RMI and some serializers to determine which connection wrote (or has info about) this object
|
||||||
// used by RMI/some serializers to determine which connection wrote this object
|
|
||||||
// NOTE: this is only valid in the context of this thread, which RMI stuff is accessed in -- so this is SAFE for RMI
|
|
||||||
this.connection = connection;
|
this.connection = connection;
|
||||||
|
|
||||||
|
|
||||||
@ -173,7 +171,7 @@ class KryoExtra extends Kryo {
|
|||||||
inputOffset = 0;
|
inputOffset = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// we AWALYS compress our data stream -- because of how AES-GCM pads data out, the small input (that would result in a larger
|
// we ALWAYS compress our data stream -- because of how AES-GCM pads data out, the small input (that would result in a larger
|
||||||
// output), will be negated by the increase in size by the encryption
|
// output), will be negated by the increase in size by the encryption
|
||||||
|
|
||||||
if (traceEnabled) {
|
if (traceEnabled) {
|
||||||
@ -258,9 +256,7 @@ class KryoExtra extends Kryo {
|
|||||||
|
|
||||||
public
|
public
|
||||||
Object readCrypto(final ConnectionImpl connection, final ByteBuf buffer, int length, final Logger logger) throws IOException {
|
Object readCrypto(final ConnectionImpl connection, final ByteBuf buffer, int length, final Logger logger) throws IOException {
|
||||||
// connection will ALWAYS be of type IConnection
|
// required by RMI and some serializers to determine which connection wrote (or has info about) this object
|
||||||
// used by RMI/some serializers to determine which connection read this object
|
|
||||||
// NOTE: this is only valid in the context of this thread, which RMI stuff is accessed in -- so this is SAFE for RMI
|
|
||||||
this.connection = connection;
|
this.connection = connection;
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user