Removed Moquette parser module
This commit is contained in:
@@ -25,16 +25,7 @@ import java.nio.ByteBuffer;
|
||||
*/
|
||||
class DebugUtils {
|
||||
|
||||
static String payload2Str(ByteBuffer content) {
|
||||
byte[] b = new byte[content.remaining()];
|
||||
content.mark();
|
||||
content.get(b);
|
||||
content.reset();
|
||||
return new String(b);
|
||||
}
|
||||
|
||||
static String payload2Str(ByteBuf content) {
|
||||
// byte[] b = new byte[content.readableBytes()];
|
||||
return new String(content.copy().array());
|
||||
return new String(content.copy ().array());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user