-
Notifications
You must be signed in to change notification settings - Fork 134
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
Refaster rule to convert Stream.of() -> Stream.empty() #1061
Conversation
Generate changelog in
|
@BeforeTemplate | ||
Stream<T> streamNoParams() { | ||
return Stream.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.
I wonder if we have anything matching:
Collections.emptySet().stream()
Collections.emptyList().stream()
ImmutableList.of().stream()
ImmutableSet.of().stream()
They might be too silly
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.
That's pretty crazy
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.
Ya, I doubt we have them for real, let's ship this as is :-]
e6e4b83
to
35df809
Compare
👍 |
Before this PR
After this PR
==COMMIT_MSG==
Add Refaster rule to convert Stream.of() -> Stream.empty()
==COMMIT_MSG==
Possible downsides?