Image by Arek Socha from Pixabay

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…

Tim Kranen

Freelance Software Engineer with a passion for Android development. Ambitious about making well written, quality software.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store