mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Migrate Nullable and NonNull annotations to AndroidX
Summary: This diff migrates the usages Nullable and NonNull annotations to AndroidX instead of javax. The purpose of this change is to bring consistency in the annotations used by the core of RN Reviewed By: makovkastar Differential Revision: D16054504 fbshipit-source-id: 21d888854da088d2a14615a90d4dc058e5286b91
This commit is contained in:
committed by
Facebook Github Bot
parent
96318e438f
commit
aa5edca0e2
@@ -6,8 +6,8 @@
|
||||
*/
|
||||
package com.facebook.react.bridge;
|
||||
|
||||
import javax.annotation.Nonnull;
|
||||
import javax.annotation.Nullable;
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.annotation.Nullable;
|
||||
|
||||
/*
|
||||
* Interface that represents a JavaScript Promise which can be passed to the native module as a
|
||||
@@ -77,7 +77,7 @@ public interface Promise {
|
||||
* @param code String
|
||||
* @param userInfo WritableMap
|
||||
*/
|
||||
void reject(String code, @Nonnull WritableMap userInfo);
|
||||
void reject(String code, @NonNull WritableMap userInfo);
|
||||
|
||||
/**
|
||||
* Report an exception with a custom code and userInfo.
|
||||
@@ -96,7 +96,7 @@ public interface Promise {
|
||||
* @param message String
|
||||
* @param userInfo WritableMap
|
||||
*/
|
||||
void reject(String code, String message, @Nonnull WritableMap userInfo);
|
||||
void reject(String code, String message, @NonNull WritableMap userInfo);
|
||||
|
||||
/**
|
||||
* Report an exception with a custom code, error message and userInfo.
|
||||
|
||||
Reference in New Issue
Block a user