-
Notifications
You must be signed in to change notification settings - Fork 746
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds tests and refactors existing tests for clarity.
As currently implemented, this bugpattern checker only handles an extremely narrow issue set and likely gives developers much more confidence in Optional safety than is actually provided. If we paste the same two files into the Checker Framework's live demo for the Optional checker, it passes on all test cases except that it still has an (understandably) false-positive for the OptionalNotPresentNegativeCases.getWhenTestedSafe_equals. I would recommend we highlight the shortcomings of this checker very clearly. PiperOrigin-RevId: 477896538
- Loading branch information
Showing
2 changed files
with
91 additions
and
35 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