MCPcopy Create free account
hub / github.com/ReadyTalk/avian / countAnnotations

Method countAnnotations

classpath/java/lang/Class.java:682–690  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

680 }
681
682 private int countAnnotations() {
683 int count = 0;
684 for (VMClass c = vmClass; c != null; c = c.super_) {
685 if (c.addendum != null && c.addendum.annotationTable != null) {
686 count += ((Object[]) c.addendum.annotationTable).length;
687 }
688 }
689 return count;
690 }
691
692 public Annotation[] getAnnotations() {
693 Annotation[] array = new Annotation[countAnnotations()];

Callers 1

getAnnotationsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected