Skip to content

Fix Dagger validation to correctly identify and reject private Kotlin classes and members. - #5237

Merged
copybara-service[bot] merged 1 commit into
masterfrom
test_954879522
Jul 31, 2026
Merged

Fix Dagger validation to correctly identify and reject private Kotlin classes and members.#5237
copybara-service[bot] merged 1 commit into
masterfrom
test_954879522

Conversation

@copybara-service

Copy link
Copy Markdown

Fix Dagger validation to correctly identify and reject private Kotlin classes and members.

This change updates XElements.isPrivate to check both isPrivate() and isKtPrivate(). This ensures that Kotlin-specific private modifiers are properly recognized during Dagger's validation, preventing injection into private Kotlin classes, constructors, fields, and methods.

RELNOTES=Fix Dagger validation to correctly identify and reject private Kotlin classes and members.

… classes and members.

This change updates XElements.isPrivate to check both isPrivate() and isKtPrivate(). This ensures that Kotlin-specific private modifiers are properly recognized during Dagger's validation, preventing injection into private Kotlin classes, constructors, fields, and methods.

RELNOTES=Fix Dagger validation to correctly identify and reject private Kotlin classes and members.
PiperOrigin-RevId: 957173860
@copybara-service
copybara-service Bot merged commit b302547 into master Jul 31, 2026
@copybara-service
copybara-service Bot deleted the test_954879522 branch July 31, 2026 16:06
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