google / google/error-prone

`GuardedByChecker` treats method handles differently from lambda expressions

Open
#544 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
7.2k
Forks
820
Avg merge
5h 9m
Merged PRs (30d)
50

Description

See the discussion in #536 and the example code in #541. For guarded objects used inside lambda expressions Error Prone currently errs on the side of safety (assuming that the lambda expression _may_ be executed in another thread), but the same caution is not applied to method handles.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.