Mark classes of package uimanager as @Nullsafe (#43155)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/43155

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

changelog: [internal] internal

Reviewed By: arushikesarwani94

Differential Revision: D54027178

fbshipit-source-id: 37940ecec4d42f9f5ae7784a865564b0ef80f4a7
This commit is contained in:
David Vacca
2024-02-23 02:42:20 -08:00
committed by Facebook GitHub Bot
parent 93b4ec3472
commit ed3eacb8b9
3 changed files with 7 additions and 0 deletions
@@ -7,12 +7,14 @@
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;
import com.facebook.react.bridge.RuntimeExecutor;
import com.facebook.soloader.SoLoader;
@Nullsafe(Nullsafe.Mode.LOCAL)
@DoNotStripAny
public class ComponentNameResolverManager {
@@ -9,6 +9,7 @@ package com.facebook.react.uimanager;
import androidx.annotation.Nullable;
import com.facebook.common.logging.FLog;
import com.facebook.infer.annotation.Nullsafe;
import com.facebook.react.bridge.ReadableMap;
import com.facebook.react.bridge.WritableMap;
@@ -24,6 +25,7 @@ import com.facebook.react.bridge.WritableMap;
* retrying the UpdateState call until it succeeds; or you call setState again; or the View layer is
* updated with a newer StateWrapper.
*/
@Nullsafe(Nullsafe.Mode.LOCAL)
@Deprecated(
since =
"Deprecated class since v0.73.0, please use com.facebook.react.uimanager.StateWrapper instead.",
@@ -7,6 +7,9 @@
package com.facebook.react.uimanager;
import com.facebook.infer.annotation.Nullsafe;
@Nullsafe(Nullsafe.Mode.LOCAL)
public class FloatUtil {
private static final float EPSILON = .00001f;