]> source.dussan.org Git - aspectj.git/commitdiff
move away from using helper methods on Member
authoraclement <aclement>
Tue, 17 Nov 2009 17:57:49 +0000 (17:57 +0000)
committeraclement <aclement>
Tue, 17 Nov 2009 17:57:49 +0000 (17:57 +0000)
org.aspectj.matcher/src/org/aspectj/weaver/Shadow.java

index 290c7a7fa76a310fd70dd180c70ce726d7d83f1d..c8c3121db9f555ff2fa9333cc66240dba07522e1 100644 (file)
@@ -14,6 +14,7 @@ package org.aspectj.weaver;
 
 import java.io.DataInputStream;
 import java.io.IOException;
+import java.lang.reflect.Modifier;
 import java.util.ArrayList;
 import java.util.Collections;
 import java.util.HashSet;
@@ -70,7 +71,7 @@ public abstract class Shadow {
                if (getKind().neverHasThis()) {
                        return false;
                } else if (getKind().isEnclosingKind()) {
-                       return !getSignature().isStatic();
+                       return !Modifier.isStatic(getSignature().getModifiers());
                } else if (enclosingShadow == null) {
                        return false;
                } else {
@@ -109,7 +110,7 @@ public abstract class Shadow {
                } else if (getKind().isTargetSameAsThis()) {
                        return hasThis();
                } else {
-                       return !getSignature().isStatic();
+                       return !Modifier.isStatic(getSignature().getModifiers());
                }
        }