Skip to content

Commit 55730f2

Browse files
committed
wip! suppress cast warning
[WARNING] blazingmq-sdk-java/bmq-sdk/src/test/java/com/bloomberg/bmq/it/util/TestTools.java:[152,16] redundant cast to java.nio.ByteBuffer Signed-off-by: Patrick M. Niedzielski <pniedzielski@bloomberg.net>
1 parent 7d70397 commit 55730f2

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

bmq-sdk/src/test/java/com/bloomberg/bmq/it/util/TestTools.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,10 +146,9 @@ public static ByteBuffer mergeBuffers(ByteBuffer[] bbuf) {
146146
for (ByteBuffer b : bbuf) {
147147
bb.put(b);
148148
}
149+
bb.flip();
149150

150-
// 'flip()' might return 'Buffer' interface objects in some JDKs,
151-
// need to specify concrete class
152-
return (ByteBuffer) bb.flip();
151+
return bb;
153152
}
154153

155154
public static PutMessageImpl preparePutMessage(String payload, boolean isOldStyleProperties)

0 commit comments

Comments
 (0)