Skip to content

Apply NullAbility to rsocket module #10303

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

Merged

Conversation

ngocnhan-tran1996
Copy link
Contributor

Related to: #10083

* @param routeVariables the variables to expand route template.
*/
@SuppressWarnings("this-escape")
public RSocketOutboundGateway(Expression routeExpression, Object @Nullable [] routeVariables) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, revise this to be a private ctor.
I don't want to encourage users to follow this pattern.
It is really better to do that how it is explained in JavaDocs: fully via expression.
The expression is going to be evaluated against request message at runtime, and there you can build the route whatever way you need.

Signed-off-by: Tran Ngoc Nhan <[email protected]>
@artembilan artembilan merged commit 3df47ea into spring-projects:main Aug 13, 2025
3 checks passed
@ngocnhan-tran1996 ngocnhan-tran1996 deleted the gh-10083-scripting-rsocket branch August 13, 2025 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants