codec-memcache: No need to allocate a buffer if no extra is used.
This commit is contained in:
parent
6e23cf8c92
commit
fcb32a77b9
|
@ -30,7 +30,7 @@ public class DefaultBinaryMemcacheRequest extends AbstractBinaryMemcacheMessage<
|
||||||
* @param header the header to use.
|
* @param header the header to use.
|
||||||
*/
|
*/
|
||||||
public DefaultBinaryMemcacheRequest(BinaryMemcacheRequestHeader header) {
|
public DefaultBinaryMemcacheRequest(BinaryMemcacheRequestHeader header) {
|
||||||
this(header, null, Unpooled.EMPTY_BUFFER);
|
this(header, null, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -40,7 +40,7 @@ public class DefaultBinaryMemcacheRequest extends AbstractBinaryMemcacheMessage<
|
||||||
* @param key the key to use.
|
* @param key the key to use.
|
||||||
*/
|
*/
|
||||||
public DefaultBinaryMemcacheRequest(BinaryMemcacheRequestHeader header, String key) {
|
public DefaultBinaryMemcacheRequest(BinaryMemcacheRequestHeader header, String key) {
|
||||||
this(header, key, Unpooled.EMPTY_BUFFER);
|
this(header, key, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -30,7 +30,7 @@ public class DefaultBinaryMemcacheResponse extends AbstractBinaryMemcacheMessage
|
||||||
* @param header the header to use.
|
* @param header the header to use.
|
||||||
*/
|
*/
|
||||||
public DefaultBinaryMemcacheResponse(BinaryMemcacheResponseHeader header) {
|
public DefaultBinaryMemcacheResponse(BinaryMemcacheResponseHeader header) {
|
||||||
this(header, null, Unpooled.EMPTY_BUFFER);
|
this(header, null, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -40,7 +40,7 @@ public class DefaultBinaryMemcacheResponse extends AbstractBinaryMemcacheMessage
|
||||||
* @param key the key to use
|
* @param key the key to use
|
||||||
*/
|
*/
|
||||||
public DefaultBinaryMemcacheResponse(BinaryMemcacheResponseHeader header, String key) {
|
public DefaultBinaryMemcacheResponse(BinaryMemcacheResponseHeader header, String key) {
|
||||||
this(header, key, Unpooled.EMPTY_BUFFER);
|
this(header, key, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue
Block a user