Skip to content

Commit 42167b9

Browse files
committed
[Java] Address warning in test.
1 parent 7201946 commit 42167b9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

sbe-tool/src/test/java/uk/co/real_logic/sbe/generation/java/CompositeElementsGenerationTest.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ public void shouldOtfDecodeCorrectly() throws Exception
182182
inOrder.verify(mockTokenListener).onEndComposite(any(), any(), eq(2), eq(17));
183183
}
184184

185-
private static int encodeTestMessage(final ByteBuffer buffer)
185+
private static void encodeTestMessage(final ByteBuffer buffer)
186186
{
187187
final UnsafeBuffer directBuffer = new UnsafeBuffer(buffer);
188188

@@ -206,8 +206,6 @@ private static int encodeTestMessage(final ByteBuffer buffer)
206206
MSG_ENCODER.structure().inner()
207207
.first(101)
208208
.second(202);
209-
210-
return MSG_ENCODER.encodedLength();
211209
}
212210

213211
private static void encodeSchema(final ByteBuffer buffer) throws Exception

0 commit comments

Comments
 (0)