-
Notifications
You must be signed in to change notification settings - Fork 24.9k
Kotlin: Clean up redundant constructs #51061
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kotlin: Clean up redundant constructs #51061
Conversation
|
@javache has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
|
What's the lint rule removing final from override and some classes? No strong opinion either way, but it does show up as an API delta/ |
@javache see this: https://www.jetbrains.com.cn/en-us/help/inspectopedia/RedundantModalityModifier.html, that one is the specific warning static code analysis detected for those. But I can put them back if we don't want to fix those or if it's causing issues internally. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice cleanup btw 🙏
Summary: Follow up from #51061 – Static code analysis detected several redundant constructs across the codebase. Most of the ones fixed here are marked as warnings/weak warnings, likely code smells post-migration from Java. Doing another small round to clean up some of them. ## Changelog: [INTERNAL] - Kotlin: Clean up redundant constructs Pull Request resolved: #51170 Test Plan: ```sh yarn android yarn test-android ``` Reviewed By: rshest Differential Revision: D74381864 Pulled By: cortinico fbshipit-source-id: 25244cdf384875f7cc4e2d091c8b247710de5ecf
Summary:
Static code analysis detected several redundant constructs across the codebase. Most of the ones fixed here are marked as warnings/weak warnings, likely code smells post-migration from Java.
Doing a small round to clean up some of them.
Changelog:
[INTERNAL] - Kotlin: Clean up redundant constructs
Test Plan: