forked from square/dagger
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove superficial validation for cases where we don't need it.
This CL removes superficial validation in 3 special cases: 1. If a members injected type has no `@Inject` constructor, we don't need to do superficial validation on the type's annotations because Dagger does not create the type, so we ignore scopes even if they're present. 2. For each super class, we don't need to do superficial validation on the type's annotations because Dagger only relies on the scopes of the subtype. 3. For each super class, we don't need to do superficial validation on the constructor because Dagger only relies on the constructor of the subtype. This will hopefully help cases like #3090, where the current superficial validation can fail on non-Dagger related types. RELNOTES=N/A PiperOrigin-RevId: 416363991
- Loading branch information
Showing
2 changed files
with
62 additions
and
8 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