Skip to content

Commit 02b0c7a

Browse files
committed
[Java] Switch JsonPrinter.print to use DirectBuffer instead of UnsafeBuffer.
1 parent b0bfa08 commit 02b0c7a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sbe-tool/src/main/java/uk/co/real_logic/sbe/json/JsonPrinter.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
*/
1616
package uk.co.real_logic.sbe.json;
1717

18+
import org.agrona.DirectBuffer;
1819
import org.agrona.concurrent.UnsafeBuffer;
1920
import uk.co.real_logic.sbe.ir.Ir;
2021
import uk.co.real_logic.sbe.ir.Token;
@@ -62,7 +63,7 @@ public void print(final ByteBuffer encodedMessage, final StringBuilder output)
6263
* @param buffer with encoded message and header.
6364
* @param offset at which the header begins.
6465
*/
65-
public void print(final StringBuilder output, final UnsafeBuffer buffer, final int offset)
66+
public void print(final StringBuilder output, final DirectBuffer buffer, final int offset)
6667
{
6768
final int blockLength = headerDecoder.getBlockLength(buffer, offset);
6869
final int templateId = headerDecoder.getTemplateId(buffer, offset);

0 commit comments

Comments
 (0)