Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It's not much different that package-private (the default visibility in java).


We use package-private and @VisibleForTesting (I forget which library provides that now) for these cases.


@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.)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: