From 0655f20543faf91c6d920768a1b3880a3fd16d2c Mon Sep 17 00:00:00 2001 From: Andreas Mager Date: Wed, 1 Feb 2017 15:49:53 +0100 Subject: [PATCH] broker/DebugUtils: code formatter used --- broker/src/main/java/io/moquette/spi/impl/DebugUtils.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/broker/src/main/java/io/moquette/spi/impl/DebugUtils.java b/broker/src/main/java/io/moquette/spi/impl/DebugUtils.java index 831dc74b..4c403275 100644 --- a/broker/src/main/java/io/moquette/spi/impl/DebugUtils.java +++ b/broker/src/main/java/io/moquette/spi/impl/DebugUtils.java @@ -13,10 +13,10 @@ * * You may elect to redistribute this code under either of these licenses. */ + package io.moquette.spi.impl; import io.netty.buffer.ByteBuf; - import java.nio.ByteBuffer; /** @@ -24,6 +24,7 @@ import java.nio.ByteBuffer; * @author andrea */ class DebugUtils { + static String payload2Str(ByteBuffer content) { byte[] b = new byte[content.remaining()]; content.mark(); @@ -33,7 +34,7 @@ class DebugUtils { } static String payload2Str(ByteBuf content) { - //byte[] b = new byte[content.readableBytes()]; + // byte[] b = new byte[content.readableBytes()]; return new String(content.copy().array()); } }