Description
Currently, annotations are available for classes and methods only:
- ClassInfo.getModifiers().getAnnotations()
- MethodInfo.getSignature().getAnnotations()
There's nothing like PackageInfo.getAnnotations().
The reason to have this is that package-info.java files may contain annotations (but no executable code). While having this adds no value for Clover instrumentation itself, it could be useful for plugin developers, who would like to read Clover database directly.
For instance, this information could be used to filter classes based on the information stored on a package level. See: https://answers.atlassian.com/questions/12781852/how-to-read-package-annotations-from-clover-db