Skip to content

Commit 51088c9

Browse files
mdvaccafacebook-github-bot
authored andcommitted
Mark classes of package uimanager as @nullsafe (#43162)
Summary: Pull Request resolved: #43162 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: D54027181 fbshipit-source-id: af9f022d36a2e60788d6790525736d1b6cfdf6fa
1 parent e69faff commit 51088c9

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@
99

1010
import android.util.DisplayMetrics;
1111
import android.util.TypedValue;
12+
import com.facebook.infer.annotation.Nullsafe;
1213

1314
/** Android dp to pixel manipulation */
15+
@Nullsafe(Nullsafe.Mode.LOCAL)
1416
public class PixelUtil {
1517

1618
/** Convert from DIP to PX */

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,14 @@
77

88
package com.facebook.react.uimanager;
99

10+
import com.facebook.infer.annotation.Nullsafe;
1011
import java.util.Locale;
1112

1213
/**
1314
* Possible values for pointer events that a view and its descendants should receive. See
1415
* https://developer.mozilla.org/en-US/docs/Web/CSS/pointer-events for more info.
1516
*/
17+
@Nullsafe(Nullsafe.Mode.LOCAL)
1618
public enum PointerEvents {
1719

1820
/** Neither the container nor its children receive events. */

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,14 @@
1010
import android.graphics.Rect;
1111
import android.view.View;
1212
import android.view.ViewParent;
13+
import com.facebook.infer.annotation.Nullsafe;
1314
import javax.annotation.concurrent.NotThreadSafe;
1415

1516
/**
1617
* Provides implementation of common tasks for view and it's view manager supporting property {@code
1718
* removeClippedSubviews}.
1819
*/
20+
@Nullsafe(Nullsafe.Mode.LOCAL)
1921
@NotThreadSafe
2022
public class ReactClippingViewGroupHelper {
2123

0 commit comments

Comments
 (0)