mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Mark ReactApplicationContext.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 ReactApplicationContext.java as nullsafe Reviewed By: javache Differential Revision: D72704847 fbshipit-source-id: cd6907630839a8be2a6fb1d0a673357aef1395fc
This commit is contained in:
committed by
Facebook GitHub Bot
parent
8d72e5eeb9
commit
f86de9724b
+2
@@ -8,11 +8,13 @@
|
||||
package com.facebook.react.bridge;
|
||||
|
||||
import android.content.Context;
|
||||
import com.facebook.infer.annotation.Nullsafe;
|
||||
|
||||
/**
|
||||
* A context wrapper that always wraps Android Application {@link Context} and {@link
|
||||
* CatalystInstance} by extending {@link ReactContext}
|
||||
*/
|
||||
@Nullsafe(Nullsafe.Mode.LOCAL)
|
||||
public abstract class ReactApplicationContext extends ReactContext {
|
||||
// We want to wrap ApplicationContext, since there is no easy way to verify that application
|
||||
// context is passed as a param, we use {@link Context#getApplicationContext} to ensure that
|
||||
|
||||
Reference in New Issue
Block a user