codec-memcache: No need to allocate a buffer if no extra is used.

This commit is contained in:
Michael Nitschinger 2013-12-09 08:06:09 +01:00 committed by Trustin Lee
parent 6e23cf8c92
commit fcb32a77b9
2 changed files with 4 additions and 4 deletions

View File

@ -30,7 +30,7 @@ public class DefaultBinaryMemcacheRequest extends AbstractBinaryMemcacheMessage<
* @param header the header to use.
*/
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.
*/
public DefaultBinaryMemcacheRequest(BinaryMemcacheRequestHeader header, String key) {
this(header, key, Unpooled.EMPTY_BUFFER);
this(header, key, null);
}
/**

View File

@ -30,7 +30,7 @@ public class DefaultBinaryMemcacheResponse extends AbstractBinaryMemcacheMessage
* @param header the header to use.
*/
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
*/
public DefaultBinaryMemcacheResponse(BinaryMemcacheResponseHeader header, String key) {
this(header, key, Unpooled.EMPTY_BUFFER);
this(header, key, null);
}
/**