mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Nonnull annotations for native modules (#23353)
Summary: This adds Nonnull annotations for interfaces and classes used for native modules for Android, to improve Kotlin developer experience, but also code quality checks. [Android] [Changed] - Nonnull annotations for native module interfaces Pull Request resolved: https://github.com/facebook/react-native/pull/23353 Differential Revision: D14018181 Pulled By: mdvacca fbshipit-source-id: 09a583860a6075e1d6f6df8f479369ae96497133
This commit is contained in:
committed by
Facebook Github Bot
parent
d9f34bdbb2
commit
c93cbdf1b2
+2
-1
@@ -7,6 +7,7 @@
|
||||
|
||||
package com.facebook.react.bridge;
|
||||
|
||||
import javax.annotation.Nonnull;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
import android.app.Activity;
|
||||
@@ -19,7 +20,7 @@ public abstract class ReactContextBaseJavaModule extends BaseJavaModule {
|
||||
|
||||
private final ReactApplicationContext mReactApplicationContext;
|
||||
|
||||
public ReactContextBaseJavaModule(ReactApplicationContext reactContext) {
|
||||
public ReactContextBaseJavaModule(@Nonnull ReactApplicationContext reactContext) {
|
||||
mReactApplicationContext = reactContext;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user