Skip to content

Commit f86de97

Browse files
GijsWeteringsfacebook-github-bot
authored andcommitted
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
1 parent 8d72e5e commit f86de97

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

packages/react-native/ReactAndroid/src/main/java/com/facebook/react/bridge/ReactApplicationContext.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,13 @@
88
package com.facebook.react.bridge;
99

1010
import android.content.Context;
11+
import com.facebook.infer.annotation.Nullsafe;
1112

1213
/**
1314
* A context wrapper that always wraps Android Application {@link Context} and {@link
1415
* CatalystInstance} by extending {@link ReactContext}
1516
*/
17+
@Nullsafe(Nullsafe.Mode.LOCAL)
1618
public abstract class ReactApplicationContext extends ReactContext {
1719
// We want to wrap ApplicationContext, since there is no easy way to verify that application
1820
// context is passed as a param, we use {@link Context#getApplicationContext} to ensure that

0 commit comments

Comments
 (0)