Skip to content

Rename isWildcard to isEffectivelyWildcard and have it check the java representation for wildcards too.#5173

Merged
copybara-service[bot] merged 1 commit into
masterfrom
test_918691979
May 22, 2026
Merged

Rename isWildcard to isEffectivelyWildcard and have it check the java representation for wildcards too.#5173
copybara-service[bot] merged 1 commit into
masterfrom
test_918691979

Conversation

@copybara-service
Copy link
Copy Markdown

Rename isWildcard to isEffectivelyWildcard and have it check the java representation for wildcards too.

The current isWildcard method is poorly named because for Kotlin types it only captures the use-site variance. However, in Dagger we almost always care about the "effective" variance, which depends on many other factors like delcaration-site variance.

This CL renames isWildcard to isEffectivelyWildcard and updates the implementation to check the java representation for wildcards.

RELNOTES=N/A

…java representation for wildcards too.

The current `isWildcard` method is poorly named because for Kotlin types it only captures the use-site variance. However, in Dagger we almost always care about the "effective"  variance, which depends on many other factors like delcaration-site variance.

This CL renames `isWildcard` to `isEffectivelyWildcard` and updates the implementation to check the java representation for wildcards.

RELNOTES=N/A
PiperOrigin-RevId: 919796256
@copybara-service copybara-service Bot merged commit ee224b6 into master May 22, 2026
@copybara-service copybara-service Bot deleted the test_918691979 branch May 22, 2026 19:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant