mirror of
https://github.com/apache/rocketmq.git
synced 2026-09-21 13:49:50 +08:00
[ISSUE #2805] remove redundant package imports
This commit is contained in:
@@ -105,7 +105,7 @@ public class MessageDecoder {
|
||||
*
|
||||
* @param byteBuffer msg commit log buffer.
|
||||
*/
|
||||
public static Map<String, String> decodeProperties(java.nio.ByteBuffer byteBuffer) {
|
||||
public static Map<String, String> decodeProperties(ByteBuffer byteBuffer) {
|
||||
int sysFlag = byteBuffer.getInt(SYSFLAG_POSITION);
|
||||
int bornhostLength = (sysFlag & MessageSysFlag.BORNHOST_V6_FLAG) == 0 ? 8 : 20;
|
||||
int storehostAddressLength = (sysFlag & MessageSysFlag.STOREHOSTADDRESS_V6_FLAG) == 0 ? 8 : 20;
|
||||
@@ -141,15 +141,15 @@ public class MessageDecoder {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static MessageExt decode(java.nio.ByteBuffer byteBuffer) {
|
||||
public static MessageExt decode(ByteBuffer byteBuffer) {
|
||||
return decode(byteBuffer, true, true, false);
|
||||
}
|
||||
|
||||
public static MessageExt clientDecode(java.nio.ByteBuffer byteBuffer, final boolean readBody) {
|
||||
public static MessageExt clientDecode(ByteBuffer byteBuffer, final boolean readBody) {
|
||||
return decode(byteBuffer, readBody, true, true);
|
||||
}
|
||||
|
||||
public static MessageExt decode(java.nio.ByteBuffer byteBuffer, final boolean readBody) {
|
||||
public static MessageExt decode(ByteBuffer byteBuffer, final boolean readBody) {
|
||||
return decode(byteBuffer, readBody, true, false);
|
||||
}
|
||||
|
||||
@@ -264,12 +264,12 @@ public class MessageDecoder {
|
||||
}
|
||||
|
||||
public static MessageExt decode(
|
||||
java.nio.ByteBuffer byteBuffer, final boolean readBody, final boolean deCompressBody) {
|
||||
ByteBuffer byteBuffer, final boolean readBody, final boolean deCompressBody) {
|
||||
return decode(byteBuffer, readBody, deCompressBody, false);
|
||||
}
|
||||
|
||||
public static MessageExt decode(
|
||||
java.nio.ByteBuffer byteBuffer, final boolean readBody, final boolean deCompressBody, final boolean isClient) {
|
||||
ByteBuffer byteBuffer, final boolean readBody, final boolean deCompressBody, final boolean isClient) {
|
||||
try {
|
||||
|
||||
MessageExt msgExt;
|
||||
@@ -391,11 +391,11 @@ public class MessageDecoder {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static List<MessageExt> decodes(java.nio.ByteBuffer byteBuffer) {
|
||||
public static List<MessageExt> decodes(ByteBuffer byteBuffer) {
|
||||
return decodes(byteBuffer, true);
|
||||
}
|
||||
|
||||
public static List<MessageExt> decodes(java.nio.ByteBuffer byteBuffer, final boolean readBody) {
|
||||
public static List<MessageExt> decodes(ByteBuffer byteBuffer, final boolean readBody) {
|
||||
List<MessageExt> msgExts = new ArrayList<MessageExt>();
|
||||
while (byteBuffer.hasRemaining()) {
|
||||
MessageExt msgExt = clientDecode(byteBuffer, readBody);
|
||||
|
||||
Reference in New Issue
Block a user