forked from firka/flutter
Update StandardMessageCodec.readValue to be @Nullable (flutter/engine#53473)
corrects StandardMessageCodec return nullability annotation.
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user