Update StandardMessageCodec.readValue to be @Nullable (flutter/engine#53473)

corrects StandardMessageCodec return nullability annotation.
This commit is contained in:
Tarrin Neal
2024-06-20 12:59:50 -07:00
committed by GitHub
parent 481f292371
commit 44e637e6fc

View File

@@ -331,7 +331,7 @@ public class StandardMessageCodec implements MessageCodec<Object> {
}
/** Reads a value as written by writeValue. */
@NonNull
@Nullable
protected final Object readValue(@NonNull ByteBuffer buffer) {
if (!buffer.hasRemaining()) {
throw new IllegalArgumentException("Message corrupted");