Skip to content

Conversation

@mdvacca
Copy link
Contributor

@mdvacca mdvacca commented Feb 11, 2026

Summary:
Fixed multiple lint warnings in NativeViewHierarchyManager.java:

  1. ClownyBooleanExpression: Added SuppressLint for intentionally disabled
    DEBUG_MODE (ReactBuildConfig.DEBUG && false). This pattern is used to
    easily enable debug mode by changing to just ReactBuildConfig.DEBUG.

  2. NullableAnnotationShouldNotAddToPrimitiveTypes: Removed Nullable from
    getInstanceHandle() which returns a primitive long. Primitives can't be
    null; this method throws exceptions instead of returning null.

  3. NotInvokedPrivateMethod: Removed unused private methods arrayContains()
    and getReactContextForView() which were dead code.

changelog: [internal] internal

Reviewed By: alanleedev

Differential Revision: D91992935

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Feb 11, 2026
@mdvacca mdvacca force-pushed the export-D91992935 branch 2 times, most recently from e92c49d to 7866adf Compare February 11, 2026 01:02
@meta-codesync
Copy link

meta-codesync bot commented Feb 11, 2026

@mdvacca has exported this pull request. If you are a Meta employee, you can view the originating Diff in D91992935.

)

Summary:

Fixed multiple lint warnings in NativeViewHierarchyManager.java:

1. ClownyBooleanExpression: Added SuppressLint for intentionally disabled
   DEBUG_MODE (ReactBuildConfig.DEBUG && false). This pattern is used to
   easily enable debug mode by changing to just ReactBuildConfig.DEBUG.

2. NullableAnnotationShouldNotAddToPrimitiveTypes: Removed Nullable from
   getInstanceHandle() which returns a primitive long. Primitives can't be
   null; this method throws exceptions instead of returning null.

3. NotInvokedPrivateMethod: Removed unused private methods arrayContains()
   and getReactContextForView() which were dead code.

changelog: [internal] internal

Reviewed By: alanleedev

Differential Revision: D91992935
mdvacca added a commit to mdvacca/react-native that referenced this pull request Feb 11, 2026
)

Summary:

Fixed multiple lint warnings in NativeViewHierarchyManager.java:

1. ClownyBooleanExpression: Added SuppressLint for intentionally disabled
   DEBUG_MODE (ReactBuildConfig.DEBUG && false). This pattern is used to
   easily enable debug mode by changing to just ReactBuildConfig.DEBUG.

2. NullableAnnotationShouldNotAddToPrimitiveTypes: Removed Nullable from
   getInstanceHandle() which returns a primitive long. Primitives can't be
   null; this method throws exceptions instead of returning null.

3. NotInvokedPrivateMethod: Removed unused private methods arrayContains()
   and getReactContextForView() which were dead code.

changelog: [internal] internal

Reviewed By: alanleedev

Differential Revision: D91992935
mdvacca added a commit to mdvacca/react-native that referenced this pull request Feb 11, 2026
)

Summary:

Fixed multiple lint warnings in NativeViewHierarchyManager.java:

1. ClownyBooleanExpression: Added SuppressLint for intentionally disabled
   DEBUG_MODE (ReactBuildConfig.DEBUG && false). This pattern is used to
   easily enable debug mode by changing to just ReactBuildConfig.DEBUG.

2. NullableAnnotationShouldNotAddToPrimitiveTypes: Removed Nullable from
   getInstanceHandle() which returns a primitive long. Primitives can't be
   null; this method throws exceptions instead of returning null.

3. NotInvokedPrivateMethod: Removed unused private methods arrayContains()
   and getReactContextForView() which were dead code.

changelog: [internal] internal

Reviewed By: alanleedev

Differential Revision: D91992935
mdvacca added a commit to mdvacca/react-native that referenced this pull request Feb 11, 2026
)

Summary:

Fixed multiple lint warnings in NativeViewHierarchyManager.java:

1. ClownyBooleanExpression: Added SuppressLint for intentionally disabled
   DEBUG_MODE (ReactBuildConfig.DEBUG && false). This pattern is used to
   easily enable debug mode by changing to just ReactBuildConfig.DEBUG.

2. NullableAnnotationShouldNotAddToPrimitiveTypes: Removed Nullable from
   getInstanceHandle() which returns a primitive long. Primitives can't be
   null; this method throws exceptions instead of returning null.

3. NotInvokedPrivateMethod: Removed unused private methods arrayContains()
   and getReactContextForView() which were dead code.

changelog: [internal] internal

Reviewed By: alanleedev

Differential Revision: D91992935
@meta-codesync meta-codesync bot closed this in 19faf7e Feb 12, 2026
@react-native-bot
Copy link
Collaborator

This pull request was successfully merged by @mdvacca in 19faf7e

When will my fix make it into a release? | How to file a pick request?

@react-native-bot react-native-bot added the Merged This PR has been merged. label Feb 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants