Recently a coworker and I had a small exchange on a pull request about the Android annotation @VisibleForTesting. For those who aren’t familiar with this annotation this is what the Android docs have to say about it:
Denotes that the class, method or field has its visibility relaxed, so that it is more widely visible than otherwise necessary to make code testable. You can optionally specify what the visibility should have been if not for testing; this allows tools to catch unintended access from within production code. — Android Developer Documentation
It prompted me to take a bit of a…
Freelance Software Engineer with a passion for Android development. Ambitious about making well written, quality software.