if (annotationMethod.defaultValue != null) {
defaultValue = getAnnotationElementValue(logger,
annotationMethod.returnType.resolvedType,
annotationMethod.defaultValue);
}
method = new JAnnotationMethod(enclosingType, name, defaultValue,
declaredAnnotations);
} else {
method = new JMethod(enclosingType, name, declaredAnnotations,
jtypeParameters);
}