-
Notifications
You must be signed in to change notification settings - Fork 24.9k
Add missing ReplaceWith on deprecations
#51144
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
Add missing ReplaceWith on deprecations
#51144
Conversation
…ctor/add-missing-replace-with-on-deprecations
…ctor/add-missing-replace-with-on-deprecations
|
|
||
| internal class FabricEventEmitter(private val uiManager: FabricUIManager) : RCTModernEventEmitter { | ||
| @Deprecated("Deprecated in Java") | ||
| @Deprecated("Deprecated in Java", ReplaceWith("receiveEvent(ViewUtil.NO_SURFACE_ID, targetTag, eventName, params)")) |
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.
This is not the right replacement. NO_SURFACE_ID will likely cause the event to be dropped.
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.
|
@javache has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
|
This pull request was successfully merged by @mateoguzmana in 84253c4 When will my fix make it into a release? | How to file a pick request? |
Summary:
Static code analysis detected several missing
ReplaceWithon deprecated methods. This diff addresses some of them by adding the most accurate suggestions based on the implementations.Changelog:
[INTERNAL] - Add missing ReplaceWith on deprecations
Test Plan: