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

Convert return statement to use Optional.ofNullable(xxx)/Optional.of(xxx) in methods with Optional return type #56

Closed
markiewb opened this issue Apr 1, 2015 · 1 comment
Milestone

Comments

@markiewb
Copy link
Owner

markiewb commented Apr 1, 2015

Provide some fixes for return statements within methods with the return type java.util.Optional.

For example

  • return null will be transformed to return Optional.empty()
  • return xxx will be transformed to return Optional.of(xxx) or return Optional.ofNullable(xxx)

@markiewb markiewb added this to the 1.6.0 milestone Apr 1, 2015
@markiewb
Copy link
Owner Author

markiewb commented Apr 1, 2015

Merge hint with "Convert return null to return Optional.empty()"

markiewb added a commit that referenced this issue Apr 1, 2015
@markiewb markiewb closed this as completed Apr 1, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant