Skip to content
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

[Enhancement] Simplify code checks using Optional in ClientRequestProcessor#getRouteInfoByTopic method #7747

Closed
1 task done
mxsm opened this issue Jan 13, 2024 · 1 comment · Fixed by #7748
Closed
1 task done

Comments

@mxsm
Copy link
Member

mxsm commented Jan 13, 2024

Before Creating the Enhancement Request

  • I have confirmed that this should be classified as an enhancement rather than a bug/feature.

Summary

image

Motivation

Simplify code checks using Optional in ClientRequestProcessor#getRouteInfoByTopic method

Describe the Solution You'd Like

Simplify code checks using Optional

Describe Alternatives You've Considered

Simplify the code.

Additional Context

No response

@ChineseTony
Copy link
Contributor

@mxsm hello, I think it's can write to

  boolean standardJsonOnly = Boolean.TRUE.equals(requestHeader.getAcceptStandardJsonOnly());
  if (request.getVersion() >= MQVersion.Version.V4_9_4.ordinal() || standardJsonOnly) {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants