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

Method getAnnotationDefaultValue

classpath/avian/Classes.java:525–542  ·  view source on GitHub ↗
(ClassLoader loader,
                                                 MethodAddendum addendum)

Source from the content-addressed store, hash-verified

523 }
524
525 public static Object getAnnotationDefaultValue(ClassLoader loader,
526 MethodAddendum addendum) {
527 if (addendum == null) {
528 return null;
529 }
530 byte[] annotationDefault = (byte[]) addendum.annotationDefault;
531 if (annotationDefault == null) {
532 return null;
533 }
534 try {
535 return parseAnnotationValue(loader, addendum.pool,
536 new ByteArrayInputStream(annotationDefault));
537 } catch (IOException e) {
538 AssertionError error = new AssertionError();
539 error.initCause(e);
540 throw error;
541 }
542 }
543
544 private static int index(VMMethod m) {
545 VMMethod[] table = m.class_.methodTable;

Callers 1

getDefaultValueMethod · 0.95

Calls 2

parseAnnotationValueMethod · 0.95
initCauseMethod · 0.80

Tested by

no test coverage detected