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

Commit dda82d9

Browse files
authored
Update StandardMessageCodec.readValue to be @nullable (#53473)
corrects StandardMessageCodec return nullability annotation.
1 parent d721351 commit dda82d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shell/platform/android/io/flutter/plugin/common/StandardMessageCodec.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ protected static final void readAlignment(@NonNull ByteBuffer buffer, int alignm
331331
}
332332

333333
/** Reads a value as written by writeValue. */
334-
@NonNull
334+
@Nullable
335335
protected final Object readValue(@NonNull ByteBuffer buffer) {
336336
if (!buffer.hasRemaining()) {
337337
throw new IllegalArgumentException("Message corrupted");

0 commit comments

Comments
 (0)