Skip to content

Commit

Permalink
Mark classes of package uimanager as @nullsafe
Browse files Browse the repository at this point in the history
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
  • Loading branch information
mdvacca authored and facebook-github-bot committed Feb 23, 2024
1 parent d92f718 commit ab9b989
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

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;
Expand All @@ -32,6 +33,7 @@
* 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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@

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";
Expand Down

0 comments on commit ab9b989

Please sign in to comment.