Mark JavaScriptModuleRegistry.java as nullsafe

Summary:
This class doesn't have any FIXMEs to fix, so we can just annotate it and protect against future issues!

Changelog: [Android][Fixed] Mark JavaScriptModuleRegistry.java as nullsafe

Reviewed By: javache

Differential Revision: D72704846

fbshipit-source-id: d1bca84cd2f4543e154ab8e7948821b176088d64
This commit is contained in:
Gijs Weterings authored and Facebook GitHub Bot committed 2025-04-09 14:49:39 -07:00
1 parent 9d21f97ebe
commit bf911e1f92
1 file changed
+2
@@ -8,6 +8,7 @@
package com.facebook.react.bridge;
import androidx.annotation.Nullable;
import com.facebook.infer.annotation.Nullsafe;
import com.facebook.react.common.build.ReactBuildConfig;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
@@ -21,6 +22,7 @@ import java.util.Set;
* dispatch method calls on JavaScriptModules to the bridge using the corresponding module and
* method ids so the proper function is executed in JavaScript.
*/
@Nullsafe(Nullsafe.Mode.LOCAL)
public final class JavaScriptModuleRegistry {
private final HashMap<Class<? extends JavaScriptModule>, JavaScriptModule> mModuleInstances;