broker/DebugUtils: code formatter used
This commit is contained in:
@@ -13,10 +13,10 @@
|
|||||||
*
|
*
|
||||||
* You may elect to redistribute this code under either of these licenses.
|
* You may elect to redistribute this code under either of these licenses.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package io.moquette.spi.impl;
|
package io.moquette.spi.impl;
|
||||||
|
|
||||||
import io.netty.buffer.ByteBuf;
|
import io.netty.buffer.ByteBuf;
|
||||||
|
|
||||||
import java.nio.ByteBuffer;
|
import java.nio.ByteBuffer;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -24,6 +24,7 @@ import java.nio.ByteBuffer;
|
|||||||
* @author andrea
|
* @author andrea
|
||||||
*/
|
*/
|
||||||
class DebugUtils {
|
class DebugUtils {
|
||||||
|
|
||||||
static String payload2Str(ByteBuffer content) {
|
static String payload2Str(ByteBuffer content) {
|
||||||
byte[] b = new byte[content.remaining()];
|
byte[] b = new byte[content.remaining()];
|
||||||
content.mark();
|
content.mark();
|
||||||
@@ -33,7 +34,7 @@ class DebugUtils {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static String payload2Str(ByteBuf content) {
|
static String payload2Str(ByteBuf content) {
|
||||||
//byte[] b = new byte[content.readableBytes()];
|
// 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