-
Notifications
You must be signed in to change notification settings - Fork 292
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ignore library models return nullability on first-party code. (#446)
By definition, library models are designed to handle third-party libraries. However, as currently implemented, a library model indicating an `@Nullable` return will apply to all subtypes of the type in the model, including those in first-party code. This change fixes that, ignoring library models information whenever code is marked as unannotated. See #445 for a discussion. Generally, the principle behind this is that a method in "annotated" code without an `@Nullable` annotation should never magically just be considered to return `@Nullable` implicitly, which is what the current/previous behavior regarding library models did.
- Loading branch information
1 parent
35fa696
commit 998ba05
Showing
3 changed files
with
63 additions
and
3 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
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