2 ms·
It's not much different that package-private (the default visibility in java).
by sanderjd 3y ago
It's not much different that package-private (the default visibility in java).
- brabel 3y agoWe use package-private and @VisibleForTesting (I forget which library provides that now) for these cases.
- sanderjd 3y ago@VisibleForTesting is mostly documentation; you can just as easily use package private without an annotation. (Though yeah, I think it's good to use the annotation anyway.)