Skip to content

Fix UnsafeDereference: Replace !! with checkNotNull in FilterHelper#56116

Closed
mdvacca wants to merge 5 commits intofacebook:mainfrom
mdvacca:export-D96784843
Closed

Fix UnsafeDereference: Replace !! with checkNotNull in FilterHelper#56116
mdvacca wants to merge 5 commits intofacebook:mainfrom
mdvacca:export-D96784843

Conversation

@mdvacca
Copy link
Contributor

@mdvacca mdvacca commented Mar 16, 2026

Summary:
Fixed UnsafeDereference lint warning in FilterHelper.kt.

Replaced filters.getMap(i)!! with checkNotNull(filters.getMap(i)) in isOnlyColorMatrixFilters method to match the pattern used in other methods in the same class.

changelog: [internal] internal

Differential Revision: D96784843

mdvacca added 5 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
Summary:
Fixed UnsafeDereference lint warning in FilterHelper.kt.

Replaced `filters.getMap(i)!!` with `checkNotNull(filters.getMap(i))` in `isOnlyColorMatrixFilters` method to match the pattern used in other methods in the same class.

changelog: [internal] internal

Differential Revision: D96784843
@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

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 D96784843.

@meta-codesync meta-codesync bot closed this in 320e3bd Mar 20, 2026
@facebook-github-tools facebook-github-tools bot added the Merged This PR has been merged. label Mar 20, 2026
@meta-codesync
Copy link

meta-codesync bot commented Mar 20, 2026

This pull request has been merged in 320e3bd.

@react-native-bot
Copy link
Collaborator

This pull request was successfully merged by @mdvacca in 320e3bd

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

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.

2 participants