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

[cleanup] Optional usage #6613

Merged
merged 7 commits into from Mar 28, 2020
Merged

[cleanup] Optional usage #6613

merged 7 commits into from Mar 28, 2020

Conversation

yjshen
Copy link
Member

@yjshen yjshen commented Mar 26, 2020

This PR aims to fix or simplify Optional type usage logic:

  • Null value used for optional type.
  • Optional.isPresent() can be replaced with functional style expression
  • Optional call chain that can be simplified.

@yjshen
Copy link
Member Author

yjshen commented Mar 26, 2020

/pulsarbot run-failure-checks

@yjshen
Copy link
Member Author

yjshen commented Mar 27, 2020

/pulsarbot run-failure-checks

1 similar comment
@yjshen
Copy link
Member Author

yjshen commented Mar 27, 2020

/pulsarbot run-failure-checks

@codelipenghui
Copy link
Contributor

/pulsarbot run-failure-checks

@codelipenghui codelipenghui added this to the 2.6.0 milestone Mar 27, 2020
@yjshen
Copy link
Member Author

yjshen commented Mar 27, 2020

/pulsarbot run-failure-checks

@sijie sijie merged commit acc161b into apache:master Mar 28, 2020
huangdx0726 pushed a commit to huangdx0726/pulsar that referenced this pull request Aug 24, 2020
This PR aims to fix or simplify `Optional` type usage logic:
- Null value used for optional type.
- Optional.isPresent() can be replaced with functional style expression
- Optional call chain that can be simplified.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants