-
Notifications
You must be signed in to change notification settings - Fork 78
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
Recipe to simplify assertions on Optionals #472
Recipe to simplify assertions on Optionals #472
Conversation
copied from rewrite-recipe-starter
Thanks for getting this started! As indicated in Slack as well we have two small hurdles to cross here before we can merge this in
We're very near with all of those, so we can keep this PR open and return to it once we're ready. |
I'm guessing this has since been surpassed by If so we can close this one. Thanks though! Good attempt if we were just a tad further with rewrite-templating such that generated recipes are safe to run on Java 8. |
In terms of functionality this PR is obsolete. Once the blockers are resolved, rewriting the recipes currently covered by |
I'm leaning towards closing this one at least for now then, as we have some blockers to sort first, and even then there might be performance challenges to solve before we rewrite more recipes to Refaster style (as much as I like that option!). |
What's changed?
Adds first refaster recipe
What's your motivation?
assertThat(anOptional.isPresent()).isTrue()
should be converted toassertThat(anOptional).isPresent()
#466Anything in particular you'd like reviewers to focus on?
Anyone you would like to review specifically?
Have you considered any alternatives or workarounds?
Any additional context
Checklist