Skip to content

Conversation

@mateoguzmana
Copy link
Collaborator

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:

yarn android
yarn test-android

@facebook-github-bot facebook-github-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 May 1, 2025
@mateoguzmana mateoguzmana marked this pull request as ready for review May 1, 2025 22:16
@facebook-github-bot facebook-github-bot added the Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. label May 1, 2025
@facebook-github-bot
Copy link
Contributor

@javache has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@javache
Copy link
Member

javache commented May 2, 2025

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/

@mateoguzmana
Copy link
Collaborator Author

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.

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label May 2, 2025
@facebook-github-bot
Copy link
Contributor

@javache merged this pull request in 5d98f6f.

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.

Nice cleanup btw 🙏

facebook-github-bot pushed a commit that referenced this pull request May 8, 2025
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
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. Merged This PR has been merged. Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants