From 005c11ea0a1fafb62c3fbdea6c84a73789ea10b6 Mon Sep 17 00:00:00 2001 From: Gijs Weterings Date: Wed, 9 Apr 2025 14:49:39 -0700 Subject: [PATCH] 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 --- .../src/main/java/com/facebook/react/bridge/NativeModule.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/bridge/NativeModule.java b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/bridge/NativeModule.java index 5576d2ed9a7..65d1a01a8f0 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/bridge/NativeModule.java +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/bridge/NativeModule.java @@ -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 {