]> source.dussan.org Git - aspectj.git/commitdiff
231396: refactoring: dont look for annotations if they can't be there
authoraclement <aclement>
Mon, 12 May 2008 16:44:55 +0000 (16:44 +0000)
committeraclement <aclement>
Mon, 12 May 2008 16:44:55 +0000 (16:44 +0000)
aspectj5rt/java5-src/org/aspectj/internal/lang/reflect/AjTypeImpl.java

index 99f1e66ab593f6de78ab88d63ab37eacbb2c51d3..5c04def2c802a2b68bc94e58590fd7be44a7410a 100644 (file)
@@ -356,6 +356,7 @@ public class AjTypeImpl<T> implements AjType<T> {
 
        private boolean isReallyAMethod(Method method) {
                if (method.getName().startsWith(ajcMagic)) return false;
+               if (method.getAnnotations().length==0) return true;
                if (method.isAnnotationPresent(org.aspectj.lang.annotation.Pointcut.class)) return false;
                if (method.isAnnotationPresent(Before.class)) return false;
                if (method.isAnnotationPresent(After.class)) return false;