if (originalMethod.declaringClass instanceof SourceTypeBinding) {
SourceTypeBinding sourceType = (SourceTypeBinding) originalMethod.declaringClass;
if (sourceType.scope != null) {
AbstractMethodDeclaration methodDeclaration = originalMethod.sourceMethod();
if (methodDeclaration != null && methodDeclaration.isAnnotationMethod()) {
methodDeclaration.resolve(sourceType.scope);
}
}
}
originalMethod.tagBits |= TagBits.DefaultValueResolved;
}