-
Notifications
You must be signed in to change notification settings - Fork 3.6k
=per #23739 deprecate State.using to deter Java users
#23740
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
Conversation
|
Test PASSed. |
patriknw
left a comment
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.
LGTM
| * Modify state transition descriptor with new state data. The data will be | ||
| * set when transitioning to the new state. | ||
| */ | ||
| @InternalApi |
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.
wouldn't hurt to keep the internal marker
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.
Ok, why not.
`State.using` is a valid pattern in regular FSM. However, for persistent FSM it makes no sense and is marked as `private[akka]`. The `private[akka]` modifier does not translate into bytecode so that Java users won't see that it should not be used. Deprecating it will allow us to remove it in the future. Fixes akka#23739.
aedea1d to
d32fa0d
Compare
|
Test PASSed. |
ktoso
left a comment
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.
LGTM
`State.using` is a valid pattern in regular FSM. However, for persistent FSM it makes no sense and is marked as `private[akka]`. The `private[akka]` modifier does not translate into bytecode so that Java users won't see that it should not be used. Deprecating it will allow us to remove it in the future. Fixes akka#23739.
State.usingis a valid pattern in regular FSM. However, for persistent FSMit makes no sense and is marked as
private[akka]. Theprivate[akka]modifier doesnot translate into bytecode so that Java users won't see that it should not be used.
Deprecating it will allow us to remove it in the future.
Fixes #23739.