mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: Static code analysis reports several weak warnings, many of which seem to be leftovers after Kotlin migration. This PR addresses quite a few: - [Convert to primary constructor](https://www.jetbrains.com/help/inspectopedia/ConvertSecondaryConstructorToPrimary.html) - [If-Then foldable to '?.'](https://www.jetbrains.com/help/inspectopedia/IfThenToSafeAccess.html) - [Non-canonical modifier order](https://www.jetbrains.com/help/inspectopedia/SortModifiers.html) ## Changelog: [INTERNAL] - Kotlin: fix static code analysis weak warnings (1/n) Pull Request resolved: https://github.com/facebook/react-native/pull/52153 Test Plan: ```sh yarn android yarn test-android ``` Reviewed By: christophpurrer Differential Revision: D77042260 Pulled By: arushikesarwani94 fbshipit-source-id: ea210976ccbcecbe4843ff5205238a83fc75d43b