forked from facebook/redex
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enforce explicit factory for DexTypeDomain creation
Summary: Enforce more clear separation of the `DexTypeDomain` construction to avoid confusions - Use `create_nullable` when nullness info is unknown; Typedef annotation use cases go to this one - Use `create_not_null` only for object allocation when we are absolutely sure about the nullness of the object - Use `create_for_anno` only for special case of the Typedef annotation propagation when no other type info is present With this setup, we tighten up the possible combinations of different components in `DexTypeDomain`. We only infer `NOT_NULL` when it is correct to do so. - Update tests with more conservative type info Reviewed By: NTillmann Differential Revision: D51824964 fbshipit-source-id: cfc3fbe176a579d058bbf06dac6f8425f87d0de6
- Loading branch information
1 parent
43f23bd
commit f1976ac
Showing
10 changed files
with
194 additions
and
159 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
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
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
Oops, something went wrong.