Skip to content

Commit 9f58b1a

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 changelog: [internal] internal bypass-github-export-checks Reviewed By: javache Differential Revision: D54027182 fbshipit-source-id: 946dbf484119890658c68767916fcbf7c66996bc
1 parent a15e8f3 commit 9f58b1a

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/JSTouchDispatcher.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import android.view.ViewGroup;
1212
import com.facebook.common.logging.FLog;
1313
import com.facebook.infer.annotation.Assertions;
14+
import com.facebook.infer.annotation.Nullsafe;
1415
import com.facebook.react.common.ReactConstants;
1516
import com.facebook.react.uimanager.events.EventDispatcher;
1617
import com.facebook.react.uimanager.events.TouchEvent;
@@ -22,6 +23,7 @@
2223
* need to call handleTouchEvent from onTouchEvent and onInterceptTouchEvent. It will correctly find
2324
* the right view to handle the touch and also dispatch the appropriate event to JS
2425
*/
26+
@Nullsafe(Nullsafe.Mode.LOCAL)
2527
public class JSTouchDispatcher {
2628

2729
private int mTargetTag = -1;

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,13 @@
88
package com.facebook.react.uimanager;
99

1010
import com.facebook.infer.annotation.Assertions;
11+
import com.facebook.infer.annotation.Nullsafe;
1112

1213
/**
1314
* Provides helper methods for converting transform operations into a matrix and then into a list of
1415
* translate, scale and rotate commands.
1516
*/
17+
@Nullsafe(Nullsafe.Mode.LOCAL)
1618
public class MatrixMathHelper {
1719

1820
private static final double EPSILON = .00001d;

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@
88
package com.facebook.react.uimanager;
99

1010
import android.view.View;
11+
import com.facebook.infer.annotation.Nullsafe;
1112

1213
/** Shared utility for asserting on MeasureSpecs. */
14+
@Nullsafe(Nullsafe.Mode.LOCAL)
1315
public class MeasureSpecAssertions {
1416

1517
public static final void assertExplicitMeasureSpec(int widthMeasureSpec, int heightMeasureSpec) {

0 commit comments

Comments
 (0)