Mark classes of package uimanager as @Nullsafe

Summary:
All these classes are NullSafe, let's mark them as NullSafe(Local) to ensure lint detect errors in the future

bypass-github-export-checks

changelog: [internal] internal

Reviewed By: javache

Differential Revision: D54027184

fbshipit-source-id: 722a7e398849f5d935894f321aa0177167eebaef
This commit is contained in:
David Vacca
2024-02-28 08:47:35 -08:00
committed by Facebook GitHub Bot
parent 2e708c9c2c
commit eff28ae113
3 changed files with 7 additions and 0 deletions
@@ -7,7 +7,10 @@
package com.facebook.react.uimanager;
import com.facebook.infer.annotation.Nullsafe;
/** Default property values for Views to be shared between Views and ShadowViews. */
@Nullsafe(Nullsafe.Mode.LOCAL)
public class ViewDefaults {
public static final float FONT_SIZE_SP = 14.0f;
@@ -11,12 +11,14 @@ import android.view.View;
import android.view.ViewGroup;
import androidx.annotation.Nullable;
import com.facebook.common.logging.FLog;
import com.facebook.infer.annotation.Nullsafe;
import com.facebook.react.common.ReactConstants;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
/** Helper to handle implementing ViewGroups with custom drawing order based on z-index. */
@Nullsafe(Nullsafe.Mode.LOCAL)
public class ViewGroupDrawingOrderHelper {
private final ViewGroup mViewGroup;
private int mNumberOfChildrenWithZIndex = 0;
@@ -10,11 +10,13 @@ package com.facebook.react.uimanager;
import android.view.View;
import android.view.ViewGroup;
import androidx.annotation.Nullable;
import com.facebook.infer.annotation.Nullsafe;
import com.facebook.react.bridge.UiThreadUtil;
import java.util.List;
import java.util.WeakHashMap;
/** Class providing children management API for view managers of classes extending ViewGroup. */
@Nullsafe(Nullsafe.Mode.LOCAL)
public abstract class ViewGroupManager<T extends ViewGroup>
extends BaseViewManager<T, LayoutShadowNode> implements IViewGroupManager<T> {