Fix nullability annotation in writeValue (flutter/engine#32706)

This commit is contained in:
nt4f04uNd
2022-04-15 21:04:05 +03:00
committed by GitHub
parent 0e68e7a035
commit c343fd5735

View File

@@ -217,7 +217,7 @@ public class StandardMessageCodec implements MessageCodec<Object> {
* <p>Subclasses can extend the codec by overriding this method, calling super for values that the
* extension does not handle.
*/
protected void writeValue(@NonNull ByteArrayOutputStream stream, @NonNull Object value) {
protected void writeValue(@NonNull ByteArrayOutputStream stream, @Nullable Object value) {
if (value == null || value.equals(null)) {
stream.write(NULL);
} else if (value instanceof Boolean) {