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

Differential Revision: D54027183

fbshipit-source-id: b87e3931642abaa22b84fd48f0504f36e9c3621f
This commit is contained in:
David Vacca
2024-02-23 15:27:17 -08:00
committed by Facebook GitHub Bot
parent 51088c9b90
commit e6e5822d07
3 changed files with 8 additions and 0 deletions
@@ -7,6 +7,9 @@
package com.facebook.react.uimanager;
import com.facebook.infer.annotation.Nullsafe;
@Nullsafe(Nullsafe.Mode.LOCAL)
public class ReactInvalidPropertyException extends RuntimeException {
public ReactInvalidPropertyException(String property, String value, String expectedValues) {
@@ -10,10 +10,12 @@ package com.facebook.react.uimanager;
import android.os.Bundle;
import android.view.ViewGroup;
import androidx.annotation.Nullable;
import com.facebook.infer.annotation.Nullsafe;
import com.facebook.react.uimanager.common.UIManagerType;
import java.util.concurrent.atomic.AtomicInteger;
/** Interface for the root native view of a React native application */
@Nullsafe(Nullsafe.Mode.LOCAL)
public interface ReactRoot {
/** This constant represents that ReactRoot hasn't started yet or it has been destroyed. */
@@ -7,7 +7,10 @@
package com.facebook.react.uimanager;
import com.facebook.infer.annotation.Nullsafe;
/** Incremental counter for React Root View tag. */
@Nullsafe(Nullsafe.Mode.LOCAL)
public class ReactRootViewTagGenerator {
// Keep in sync with ReactIOSTagHandles JS module - see that file for an explanation on why the