There are valid use cases for accessing the InterfaceAudience annotations programatically.
In HBase, we are writing a unit test to check whether every class in the client packages are annotated with one of the annotations. Plus, we are also thinking about a golden file to containing all public method sigs, so that we can ensure public facing API-compatibility from a unit test.
HBASE-8546, HBASE-10462, HBASE-8275
- is related to
HADOOP-10383 InterfaceStability annotations should have RetentionPolicy.RUNTIME
HBASE-10462 Recategorize some of the client facing Public / Private interfaces