-
Notifications
You must be signed in to change notification settings - Fork 39
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
Introduce Reactor ContextEmpty
Refaster rule
#306
Conversation
a5ddfa1
to
fa1c966
Compare
^ Rebased and (hopefully) fixed the build. 👌 |
Added a commit to fix the build. If the formatter is removing an import in the output file, we can add it to the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added a commit. Nice contribution!
static final class ContextEmpty { | ||
@BeforeTemplate | ||
Context before() { | ||
return Context.of(ImmutableMap.of()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Users outside of Picnic might be more likely to use new HashMap<>()
; let's add a case for that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(Better would be to introduce a Matcher
for this, but that's something for a separate PR.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice contribution @werli 🚀 !
Context#empty
Refaster ruleContextEmpty
Refaster rule
To ensure usage of the intended API.
Suggested commit message: