mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Mark classes of package uimanager/util as @Nullsafe (#42861)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/42861 All these classes are NullSafe, let's mark them as NullSafe(Local) to ensure lint detect errors in the future changelog: [internal] internal Reviewed By: rshest Differential Revision: D53393474 fbshipit-source-id: 4bbdf72729d3a84ad90a3071d8abcedefbe89878
This commit is contained in:
committed by
Facebook GitHub Bot
parent
f4cd613042
commit
7c12e4fb8f
+2
@@ -10,6 +10,7 @@ package com.facebook.react.uimanager.util;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import androidx.annotation.Nullable;
|
||||
import com.facebook.infer.annotation.Nullsafe;
|
||||
import com.facebook.react.R;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
@@ -19,6 +20,7 @@ import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
||||
/** Finds views in React Native view hierarchies */
|
||||
@Nullsafe(Nullsafe.Mode.LOCAL)
|
||||
public class ReactFindViewUtil {
|
||||
|
||||
private static final List<OnViewFoundListener> mOnViewFoundListeners = new ArrayList<>();
|
||||
|
||||
Reference in New Issue
Block a user