if (annotation != null) {
return;
}
- for (Iterator iter = containingAspect.getMethods(); iter.hasNext();) {
- ResolvedMember member = (ResolvedMember) iter.next();
+ for (Iterator<ResolvedMember> iter = containingAspect.getMethods(false); iter.hasNext();) {
+ ResolvedMember member = iter.next();
if (member.getName().equals(annotationMethod)) {
AnnotationAJ[] annos = member.getAnnotations();
if (annos == null) {
*/
public ResolvedType getAnnotationType() {
if (annotationType == null) {
- for (Iterator iter = containingAspect.getMethods(); iter.hasNext();) {
- ResolvedMember member = (ResolvedMember) iter.next();
+ for (Iterator<ResolvedMember> iter = containingAspect.getMethods(false); iter.hasNext();) {
+ ResolvedMember member = iter.next();
if (member.getName().equals(annotationMethod)) {
ResolvedType[] annoTypes = member.getAnnotationTypes();
if (annoTypes == null) {