-
Notifications
You must be signed in to change notification settings - Fork 744
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ImmutableChecker: fix the heuristic around MemberSelects.
This was previously complaining about something like: x -> { Foo f = new Foo(); f.someList.get(0); // Complains that someList is mutable. } Obviously this doesn't matter, because `f` is owned by the lambda. This would have made the check a bit _over_-zealous. I don't think I saw any false positives in the flumes previously, but then it's probably quite rare for people to access fields directly rather than via a getter. PiperOrigin-RevId: 449938995
- Loading branch information
1 parent
97a7dbc
commit 2cb3b54
Showing
2 changed files
with
53 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters