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: arushikesarwani94

Differential Revision: D54027177

fbshipit-source-id: 13b4352f0b61eec69bfdcb6a3e369faa4dfcc750
This commit is contained in:
David Vacca
2024-02-28 08:47:35 -08:00
committed by Facebook GitHub Bot
parent a1197695fc
commit 779e3be106
3 changed files with 6 additions and 0 deletions
@@ -9,6 +9,7 @@ package com.facebook.react.uimanager;
import android.view.View;
import androidx.annotation.Nullable;
import com.facebook.infer.annotation.Nullsafe;
import com.facebook.react.bridge.Dynamic;
import com.facebook.react.bridge.ReadableArray;
import com.facebook.react.bridge.ReadableMap;
@@ -32,6 +33,7 @@ import java.util.Map;
* shouldn't be updated (whereas in all other cases it should be updated to the new value or the
* property should be reset).
*/
@Nullsafe(Nullsafe.Mode.LOCAL)
public class ReactStylesDiffMap {
/* package */ final ReadableMap mBackingMap;
@@ -7,10 +7,12 @@
package com.facebook.react.uimanager;
import com.facebook.infer.annotation.Nullsafe;
import com.facebook.yoga.YogaConfig;
import com.facebook.yoga.YogaConfigFactory;
import com.facebook.yoga.YogaErrata;
@Nullsafe(Nullsafe.Mode.LOCAL)
public class ReactYogaConfigProvider {
private static YogaConfig YOGA_CONFIG;
@@ -9,8 +9,10 @@ package com.facebook.react.uimanager;
import android.view.ViewGroup;
import android.widget.FrameLayout;
import com.facebook.infer.annotation.Nullsafe;
/** View manager for ReactRootView components. */
@Nullsafe(Nullsafe.Mode.LOCAL)
public class RootViewManager extends ViewGroupManager<ViewGroup> {
public static final String REACT_CLASS = "RootView";