mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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:
committed by
Facebook GitHub Bot
parent
9528872692
commit
005c11ea0a
+2
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user