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
+3
-3
@@ -7,8 +7,8 @@
|
||||
package com.facebook.react.bridge;
|
||||
|
||||
import android.app.Activity;
|
||||
import javax.annotation.Nonnull;
|
||||
import javax.annotation.Nullable;
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.annotation.Nullable;
|
||||
|
||||
/**
|
||||
* Base class for Catalyst native modules that require access to the {@link ReactContext} instance.
|
||||
@@ -17,7 +17,7 @@ public abstract class ReactContextBaseJavaModule extends BaseJavaModule {
|
||||
|
||||
private final ReactApplicationContext mReactApplicationContext;
|
||||
|
||||
public ReactContextBaseJavaModule(@Nonnull ReactApplicationContext reactContext) {
|
||||
public ReactContextBaseJavaModule(@NonNull ReactApplicationContext reactContext) {
|
||||
mReactApplicationContext = reactContext;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user