Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit c2960bb

Browse files
position(0) -> rewind
1 parent 652ef5e commit c2960bb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

shell/platform/android/test/io/flutter/plugin/editing/TextInputPluginTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,7 @@ private void verifyMethodCall(ByteBuffer buffer, String methodName, String[] exp
7373
private static void sendToBinaryMessageHandler(
7474
BinaryMessenger.BinaryMessageHandler binaryMessageHandler, String method, Object args) {
7575
MethodCall methodCall = new MethodCall(method, args);
76-
ByteBuffer encodedMethodCall =
77-
JSONMethodCodec.INSTANCE.encodeMethodCall(methodCall).position(0);
76+
ByteBuffer encodedMethodCall = JSONMethodCodec.INSTANCE.encodeMethodCall(methodCall).rewind();
7877
binaryMessageHandler.onMessage(encodedMethodCall, mock(BinaryMessenger.BinaryReply.class));
7978
}
8079

0 commit comments

Comments
 (0)