logo       

Annotation request: msg#00051

java.findbugs.general

Subject: Annotation request

A lot of times we have methods in some class which we intend to be only called by one particular class.
For example, we might have a method in A.one(); which we want to make sure is called by class B only or say, by package 'P' only.

It would be great if you could introduce a method level annotation like @CalledBy which takes a class name or package name and makes sure that the particular method is called by that class or from within that package only.

--
Prashant Deva
Creator, ANTLR Studio
Founder, Placid Systems, www.placidsystems.com


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise