uber / NullAway

A tool to help eliminate NullPointerExceptions (NPEs) in your Java code with low build-time overhead
MIT License
3.63k stars 293 forks source link

Remove OptionalEmptinessHandler method for propagating access paths to lambdas #953

Closed msridhar closed 5 months ago

msridhar commented 5 months ago
          We are in fact missing coverage!  It turns out that #678 made the pseudo-field simulating contents of an `Optional` final, which means we already (safely) propagate nullability facts about that pseudo-field into lambdas, which means we no longer need this handler method!  I'll go ahead and delete this method in a separate PR.  Nice to have the test coverage exposed!

_Originally posted by @msridhar in https://github.com/uber/NullAway/pull/952#discussion_r1581978350_