Apply nullsafe FIXMEs for xplat/js/react-native-github/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/bridge/Arguments.java

Summary:
Added nullsafe FIXMEs for easier reviewing of next diff, where we fix them

Changelog: [Internal]

Reviewed By: cortinico

Differential Revision: D72384064

fbshipit-source-id: 12272e3b1b0a7900515071cee9d95469e4d95d6c
This commit is contained in:
Gijs Weterings
2025-04-09 09:07:30 -07:00
committed by Facebook GitHub Bot
parent 5c9883b018
commit f0a7c76516
@@ -21,6 +21,7 @@ import java.util.Map;
public class Arguments {
private static Object makeNativeObject(Object object) {
if (object == null) {
// NULLSAFE_FIXME[Return Not Nullable]
return null;
} else if (object instanceof Float
|| object instanceof Long
@@ -97,6 +98,7 @@ public class Arguments {
}
public Object get(int index) {
// NULLSAFE_FIXME[Return Not Nullable]
return Array.get(objects, index);
}
});
@@ -148,6 +150,7 @@ public class Arguments {
return nativeMap;
}
for (String key : bundle.keySet()) {
// NULLSAFE_FIXME[Parameter Not Nullable]
addEntry(nativeMap, key, bundle.get(key));
}
return nativeMap;