From c343fd57351675b161793814e7e571870e693d7d Mon Sep 17 00:00:00 2001 From: nt4f04uNd Date: Fri, 15 Apr 2022 21:04:05 +0300 Subject: [PATCH] Fix nullability annotation in writeValue (flutter/engine#32706) --- .../android/io/flutter/plugin/common/StandardMessageCodec.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/src/flutter/shell/platform/android/io/flutter/plugin/common/StandardMessageCodec.java b/engine/src/flutter/shell/platform/android/io/flutter/plugin/common/StandardMessageCodec.java index 3cd1bf31cc..7e1978eaec 100644 --- a/engine/src/flutter/shell/platform/android/io/flutter/plugin/common/StandardMessageCodec.java +++ b/engine/src/flutter/shell/platform/android/io/flutter/plugin/common/StandardMessageCodec.java @@ -217,7 +217,7 @@ public class StandardMessageCodec implements MessageCodec { *

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) {