Skip to content

Commit e6e5822

Browse files
mdvaccafacebook-github-bot
authored andcommitted
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
1 parent 51088c9 commit e6e5822

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactInvalidPropertyException.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77

88
package com.facebook.react.uimanager;
99

10+
import com.facebook.infer.annotation.Nullsafe;
11+
12+
@Nullsafe(Nullsafe.Mode.LOCAL)
1013
public class ReactInvalidPropertyException extends RuntimeException {
1114

1215
public ReactInvalidPropertyException(String property, String value, String expectedValues) {

packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactRoot.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,12 @@
1010
import android.os.Bundle;
1111
import android.view.ViewGroup;
1212
import androidx.annotation.Nullable;
13+
import com.facebook.infer.annotation.Nullsafe;
1314
import com.facebook.react.uimanager.common.UIManagerType;
1415
import java.util.concurrent.atomic.AtomicInteger;
1516

1617
/** Interface for the root native view of a React native application */
18+
@Nullsafe(Nullsafe.Mode.LOCAL)
1719
public interface ReactRoot {
1820

1921
/** This constant represents that ReactRoot hasn't started yet or it has been destroyed. */

packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactRootViewTagGenerator.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@
77

88
package com.facebook.react.uimanager;
99

10+
import com.facebook.infer.annotation.Nullsafe;
11+
1012
/** Incremental counter for React Root View tag. */
13+
@Nullsafe(Nullsafe.Mode.LOCAL)
1114
public class ReactRootViewTagGenerator {
1215

1316
// Keep in sync with ReactIOSTagHandles JS module - see that file for an explanation on why the

0 commit comments

Comments
 (0)