Mark NativeModule.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 NativeModule.java as nullsafe

Reviewed By: javache

Differential Revision: D72704850

fbshipit-source-id: a71f3acddb0382410739b9632fba509fffcfebfd
This commit is contained in:
Gijs Weterings
2025-04-09 14:49:39 -07:00
committed by Facebook GitHub Bot
parent 9528872692
commit 005c11ea0a
@@ -7,6 +7,7 @@
package com.facebook.react.bridge;
import com.facebook.infer.annotation.Nullsafe;
import com.facebook.proguard.annotations.DoNotStrip;
import com.facebook.react.common.annotations.DeprecatedInNewArchitecture;
import com.facebook.react.common.annotations.StableReactNativeAPI;
@@ -24,6 +25,7 @@ import javax.annotation.Nonnull;
* not provide any Java code (so they can be reused on other platforms), and instead should register
* themselves using {@link CxxModuleWrapper}.
*/
@Nullsafe(Nullsafe.Mode.LOCAL)
@StableReactNativeAPI
@DoNotStrip
public interface NativeModule {