/** * {@inheritDoc} */ public AnnotationValue<?, ?> getDefaultValue() { return methodDescription.getDefaultValue(); }
/** * {@inheritDoc} */ public AnnotationValue<?, ?> getDefaultValue() { return bridgeTarget.getDefaultValue(); }
/** * Creates an annotation description for the values that were defined for this builder. * * @return An appropriate annotation description. */ public AnnotationDescription build() { for (MethodDescription methodDescription : annotationType.getDeclaredMethods()) { if (annotationValues.get(methodDescription.getName()) == null && methodDescription.getDefaultValue() == null) { throw new IllegalStateException("No value or default value defined for " + methodDescription.getName()); } } return new Latent(annotationType, annotationValues); } }