Skip to content

Fix UnsafeDereference: Replace !! with safe let in AndroidInfoHelpers#56041

Open
mdvacca wants to merge 6 commits intofacebook:mainfrom
mdvacca:export-D95413107
Open

Fix UnsafeDereference: Replace !! with safe let in AndroidInfoHelpers#56041
mdvacca wants to merge 6 commits intofacebook:mainfrom
mdvacca:export-D95413107

Conversation

@mdvacca
Copy link
Contributor

@mdvacca mdvacca commented Mar 10, 2026

Summary:
Fixed UnsafeDereference lint error in AndroidInfoHelpers.kt.

Replaced unsafe non-null assertion (metroHostPropValue!!) with a safe let expression to handle the nullable value properly.

changelog: [internal] internal

Differential Revision: D95413107

mdvacca added 6 commits March 10, 2026 08:46
…oader (facebook#56036)

Summary:

Fixed MissingSoLoaderLibrary lint error in ReactNativeJNISoLoader.kt.

Added SoLoaderLibrary("reactnativejni") annotation to the class which calls SoLoader.loadLibrary("reactnativejni") but was missing the annotation needed for build tools to sanity check JNI merging.

changelog: [internal] internal

Differential Revision: D95412950
…monSoLoader

Summary:
Fixed MissingSoLoaderLibrary lint error in ReactNativeJniCommonSoLoader.kt.

Added SoLoaderLibrary("reactnativejni_common") annotation to the class which calls SoLoader.loadLibrary("reactnativejni_common") but was missing the annotation needed for build tools to sanity check JNI merging.

changelog: [internal] internal

Reviewed By: javache

Differential Revision: D95412980
Summary:
Fixed MissingSoLoaderLibrary lint error in DefaultSoLoader.kt.

Added SoLoaderLibrary("react_newarchdefaults") annotation to the class which calls SoLoader.loadLibrary("react_newarchdefaults") but was missing the annotation needed for build tools to sanity check JNI merging.

changelog: [internal] internal

Differential Revision: D95413024
…equestListener

Summary:
Fixed MissingSoLoaderLibrary lint error in InspectorNetworkRequestListener.kt.

Added SoLoaderLibrary("reactnativejni") annotation to the class which calls SoLoader.loadLibrary("reactnativejni") but was missing the annotation needed for build tools to sanity check JNI merging.

changelog: [internal] internal

Differential Revision: D95413051
Summary:
Fixed 101 MissingOverrideAnnotation lint errors in YogaNodeJNIBase.java.

Added Override annotation to all public methods that override abstract methods from the YogaNode superclass but were missing the annotation. This includes style getters/setters (direction, flex, margin, padding, border, position, width, height, min/max dimensions, aspect ratio, gap), layout methods (reset, calculateLayout, dirty), tree manipulation (addChildAt, removeChildAt, indexOf), and measurement/baseline functions.

changelog: [internal] internal

Differential Revision: D95413075
Summary:
Fixed UnsafeDereference lint error in AndroidInfoHelpers.kt.

Replaced unsafe non-null assertion (metroHostPropValue!!) with a safe let expression to handle the nullable value properly.

changelog: [internal] internal

Differential Revision: D95413107
@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 Mar 10, 2026
@meta-codesync
Copy link

meta-codesync bot commented Mar 10, 2026

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

Copy link
Contributor

@cortinico cortinico left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review automatically exported from Phabricator review in Meta.

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 meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants