Pick the fix
Another feature module keeps using FeedMapper directly, bypassing the repository. How do you stop that?
Hint 1 of 1
Which modifier means 'only this module'?
Choose an answer, then open Show answer below to check it.
Show answer
Answer: A Mark FeedMapper internal so only its own module can use it
Correct. internal limits it to the Gradle module.
Why not the others?
- B Mark it
private. Then the repository in other files of the same module can't use it either. - C Mark it
protected. protected only applies to class members. - D Add a comment asking people not to use it. Visibility is enforced by the compiler; comments aren't.