mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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:
committed by
Facebook GitHub Bot
parent
a1197695fc
commit
779e3be106
+2
@@ -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;
|
||||
|
||||
+2
@@ -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;
|
||||
|
||||
+2
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user