Skip to content

Fix UnsafeDereference: Remove !! operators in FpsView#56115

Closed
mdvacca wants to merge 4 commits intofacebook:mainfrom
mdvacca:export-D96784792
Closed

Fix UnsafeDereference: Remove !! operators in FpsView#56115
mdvacca wants to merge 4 commits intofacebook:mainfrom
mdvacca:export-D96784792

Conversation

@mdvacca
Copy link
Copy Markdown
Contributor

@mdvacca mdvacca commented Mar 16, 2026

Summary:
Fixed UnsafeDereference lint warnings in FpsView.kt.

Changed the reactContext parameter type from ReactContext? to ReactContext since the superclass FrameLayout requires a non-null Context anyway. This eliminates the need for !! operators.

changelog: [internal] internal

Differential Revision: D96784792

mdvacca added 4 commits March 16, 2026 13:56
Summary:
Fixed MissingSoLoaderLibrary lint warning in InspectorFlags.kt.

Added SoLoaderLibrary("react_devsupportjni") annotation to the class which calls SoLoader.loadLibrary("react_devsupportjni") but was missing the annotation needed for build tools to sanity check JNI merging. Also added the soloader annotation Buck dependency.

changelog: [internal] internal

Differential Revision: D96784589
…erBinding

Summary:
Fixed MissingSoLoaderLibrary lint warning in UIConstantsProviderBinding.kt.

Added SoLoaderLibrary("uimanagerjni") annotation to the class which calls SoLoader.loadLibrary("uimanagerjni") but was missing the annotation needed for build tools to sanity check JNI merging. Also added the soloader annotation Buck dependency.

changelog: [internal] internal

Differential Revision: D96784679
…in WebSocketModule

Summary:
Fixed StringFormatTrivial lint warnings in WebSocketModule.kt.

Replaced trivial String.format calls with Kotlin string templates for better performance. String.format creates a new Formatter instance on each call, while string templates are compiled to simple concatenation.

changelog: [internal] internal

Differential Revision: D96784739
Summary:
Fixed UnsafeDereference lint warnings in FpsView.kt.

Changed the `reactContext` parameter type from `ReactContext?` to `ReactContext` since the superclass FrameLayout requires a non-null Context anyway. This eliminates the need for !! operators.

changelog: [internal] internal

Differential Revision: D96784792
@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 16, 2026
@meta-codesync
Copy link
Copy Markdown

meta-codesync Bot commented Mar 16, 2026

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

@meta-codesync meta-codesync Bot closed this in ec9ac81 Mar 17, 2026
@facebook-github-tools facebook-github-tools Bot added the Merged This PR has been merged. label Mar 17, 2026
@meta-codesync
Copy link
Copy Markdown

meta-codesync Bot commented Mar 17, 2026

This pull request has been merged in ec9ac81.

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.

1 participant