-
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
Upgrade Error Prone 2.17.0 -> 2.18.0 #455
Conversation
Looks good. No mutations were possible for these changes. |
Suggested commit message:
|
<!-- Yoda conditions are not always more | ||
readable than the alternative. --> | ||
-Xep:YodaCondition:OFF |
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.
To be sure: we can discuss enabling this, of course. Maybe I should just get used to it. Even so: the resultant changes also require careful null
analysis.
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'm on the fence about this. Enabling this would result in better/easier readable code IMO. What concerns do you have with enabling this 👀? (Other than getting used to it 😉)
In any case, it would make sense to enable this in a separate PR (especially if we want to make the next internal PSM release).
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.
What concerns do you have with enabling this 👀 (Other than getting used to it 😉 )
Well the question is whether it's just "getting used to", or that in some cases readability actually suffers. Separately from that it might force us to introduce additional explicit null
checks, which would be plain awkward.
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.
We could open a PR where we enable the check and go over the results and make a decision for EPS there? It is hard to reason about it now if we don't know how "bad" it'll be.
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.
Draft PRs are free ;)
That said, I'd also like to see the arguments brought up during the internal discussion on this topic. 🧑🎓
773c038
to
39bddbe
Compare
Looks good. No mutations were possible for these changes. |
39bddbe
to
ba1b1b1
Compare
Looks good. No mutations were possible for these changes. |
Suggested commit message: