-
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.
Handle more cases in
ReturnMissingNullable
.
I have no stats about how commonly these occur, but it's easy enough to handle them. Also, minor cleanups and other notes: - Document the `NullType` subtyping implementation trick. - Check `returnType.isPrimitive()`, just as the old code used to. This check wasn't necessary in the new code until this CL's improvements. - Inline `makeFix`, which doesn't really benefit from being a separate method. Then apply a suggested simplification. PiperOrigin-RevId: 388295613
- Loading branch information
Showing
2 changed files
with
83 additions
and
5 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