Skip to content

Commit

Permalink
Mark MemoryPressureRouter as nullsafe (#48740)
Browse files Browse the repository at this point in the history
Summary:

Mark MemoryPressureRouter as nullsafe

changelog: [internal] internal

Reviewed By: tdn120

Differential Revision: D68275418
  • Loading branch information
mdvacca authored and facebook-github-bot committed Jan 22, 2025
1 parent 1be2ba4 commit 0dc1d93
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,15 @@
import android.content.ComponentCallbacks2;
import android.content.Context;
import android.content.res.Configuration;
import com.facebook.infer.annotation.Nullsafe;
import com.facebook.react.bridge.MemoryPressureListener;
import java.util.concurrent.CopyOnWriteArrayList;

/** Translates and routes memory pressure events. */
@Nullsafe(Nullsafe.Mode.LOCAL)
public class MemoryPressureRouter implements ComponentCallbacks2 {
private final CopyOnWriteArrayList<MemoryPressureListener> mListeners =
new CopyOnWriteArrayList();
new CopyOnWriteArrayList<>();

public MemoryPressureRouter(Context context) {
context.getApplicationContext().registerComponentCallbacks(this);
Expand Down

0 comments on commit 0dc1d93

Please sign in to comment.