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: rshest Differential Revision: D54027183 fbshipit-source-id: b87e3931642abaa22b84fd48f0504f36e9c3621f
This commit is contained in:
committed by
Facebook GitHub Bot
parent
51088c9b90
commit
e6e5822d07
+3
@@ -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) {
|
||||
|
||||
+2
@@ -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. */
|
||||
|
||||
+3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user