-
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 StreamOf{1,2,3,4,5}
Refaster rules
#814
Conversation
Looks good. No mutations were possible for these changes. |
06bab08
to
e7d6176
Compare
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.
These ImmutableList#of
overloads aren't very friendly to the way in which Refaster works, thus requiring this kind of duplication in various places. At some point we should write a checker instead, but for now this SGTM :)
Rebased and added a commit. Suggested commit message:
Introduce `StreamOf{1,2,3,4,5}` Refaster rules (#814)
error-prone-contrib/src/main/java/tech/picnic/errorprone/refasterrules/ImmutableListRules.java
Outdated
Show resolved
Hide resolved
error-prone-contrib/src/main/java/tech/picnic/errorprone/refasterrules/ImmutableListRules.java
Outdated
Show resolved
Hide resolved
Looks good. No mutations were possible for these changes. |
e7d6176
to
e484053
Compare
Looks good. No mutations were possible for these changes. |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
ImmutableList.of().stream()
Refaster rulesStreamOf{1,2,3,4,5}
Refaster rules
Mainly occurs in tests, but making a list for streaming only is unnecessary (and more verbose) 🤷🏻♂️