aboutsummaryrefslogtreecommitdiffstats
path: root/aspectj5rt
diff options
context:
space:
mode:
authoraclement <aclement>2008-05-12 16:44:55 +0000
committeraclement <aclement>2008-05-12 16:44:55 +0000
commit074f33192c227c32cd15c787a9483bfd8c4e33f0 (patch)
tree233ffe09641d2caadc2b828f62665a4a61dc0a67 /aspectj5rt
parentc1e48e941045f93f8c1a3419ded77ad12bea0531 (diff)
downloadaspectj-074f33192c227c32cd15c787a9483bfd8c4e33f0.tar.gz
aspectj-074f33192c227c32cd15c787a9483bfd8c4e33f0.zip
231396: refactoring: dont look for annotations if they can't be there
Diffstat (limited to 'aspectj5rt')
-rw-r--r--aspectj5rt/java5-src/org/aspectj/internal/lang/reflect/AjTypeImpl.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/aspectj5rt/java5-src/org/aspectj/internal/lang/reflect/AjTypeImpl.java b/aspectj5rt/java5-src/org/aspectj/internal/lang/reflect/AjTypeImpl.java
index 99f1e66ab..5c04def2c 100644
--- a/aspectj5rt/java5-src/org/aspectj/internal/lang/reflect/AjTypeImpl.java
+++ b/aspectj5rt/java5-src/org/aspectj/internal/lang/reflect/AjTypeImpl.java
@@ -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;