Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove private modifier from fields/methods within generated Dagger component's private implementation classes. #4561

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

copybara-service[bot]
Copy link

Remove private modifier from fields/methods within generated Dagger component's private implementation classes.

This change has a couple benefits:

  1. Reduces the amount of synthetic accessor methods needed for JDK<11/Dalvik/ART which don't support nestmates (see Android Lint flags SyntheticAccessor for return InstanceHolder.INSTANCE statement in _Factory.java #4544).
  2. Will likely be needed before we start generating Kotlin source anyway since Kotlin doesn't allow a class to access another class's private members in such a way.

RELNOTES=Remove private modifier from fields/methods within private implementation classes.

…omponent's private implementation classes.

This change has a couple benefits:

  1. Reduces the amount of synthetic accessor methods needed for JDK<11/Dalvik/ART which don't support nestmates (see #4544).
  2. Will likely be needed before we start generating Kotlin source anyway since Kotlin doesn't allow a class to access another class's private members in such a way.

RELNOTES=Remove private modifier from fields/methods within private implementation classes.
PiperOrigin-RevId: 712627446
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