forked from square/dagger
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow Hilt view constructor to contain non-declared types.
This CL fixes an issue in ViewGenerator#isRestrictedApiConstructor() where we were assuming that the parameter type could be represented by a TypeElement. To fix this, we now first check that the parameter type is a TypeKind.DECLARED type before getting a TypeElement for it. Fixes #3296 RELNOTES=Allow Hilt view constructor to contain non-declared types. PiperOrigin-RevId: 434522808
- Loading branch information
Showing
2 changed files
with
126 additions
and
11 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