Annotations to change access level of method
Even though I am not an advanced user I think this is may be an advanced topic (feel free to correct me). I was wondering if an annotation exists that would allow a method (or field) to change its level of access for specific types of methods or classes? For example if you have methods that you want to be private but would like to run Junit tests on them. If it does not exist is possible to create one? Also if this idea seems completely unreasonable or useless let me know why?
Thanks in advance.