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:
Gijs Weterings
2025-04-09 14:49:39 -07:00
committed by Facebook GitHub Bot
parent 8d72e5eeb9
commit f86de9724b
@@ -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