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: javache Differential Revision: D54027186 fbshipit-source-id: 2cee2b598c3ef15641222018703a7d6a467ba30c
This commit is contained in:
committed by
Facebook GitHub Bot
parent
779e3be106
commit
becb9a3df6
+2
@@ -8,6 +8,7 @@
|
||||
package com.facebook.react.uimanager;
|
||||
|
||||
import android.view.View;
|
||||
import com.facebook.infer.annotation.Nullsafe;
|
||||
|
||||
/**
|
||||
* Common base class for most of the {@link ViewManager}s. It provides support for most common
|
||||
@@ -17,6 +18,7 @@ import android.view.View;
|
||||
*
|
||||
* @param <T> the view handled by this manager
|
||||
*/
|
||||
@Nullsafe(Nullsafe.Mode.LOCAL)
|
||||
public abstract class SimpleViewManager<T extends View>
|
||||
extends BaseViewManager<T, LayoutShadowNode> {
|
||||
|
||||
|
||||
+2
@@ -7,6 +7,7 @@
|
||||
|
||||
package com.facebook.react.uimanager;
|
||||
|
||||
import com.facebook.infer.annotation.Nullsafe;
|
||||
import com.facebook.yoga.YogaConstants;
|
||||
import java.util.Arrays;
|
||||
|
||||
@@ -15,6 +16,7 @@ import java.util.Arrays;
|
||||
* properly implement interactions and updates for properties like margin, marginLeft, and
|
||||
* marginHorizontal.
|
||||
*/
|
||||
@Nullsafe(Nullsafe.Mode.LOCAL)
|
||||
public class Spacing {
|
||||
|
||||
/** Spacing type that represents the left direction. E.g. {@code marginLeft}. */
|
||||
|
||||
+2
@@ -7,6 +7,7 @@
|
||||
|
||||
package com.facebook.react.uimanager;
|
||||
|
||||
import com.facebook.infer.annotation.Nullsafe;
|
||||
import com.facebook.jni.HybridData;
|
||||
import com.facebook.proguard.annotations.DoNotStrip;
|
||||
import com.facebook.proguard.annotations.DoNotStripAny;
|
||||
@@ -15,6 +16,7 @@ import com.facebook.react.bridge.RuntimeExecutor;
|
||||
import com.facebook.soloader.SoLoader;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
@Nullsafe(Nullsafe.Mode.LOCAL)
|
||||
@DoNotStripAny
|
||||
public class UIConstantsProviderManager {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user