From: aclement Date: Tue, 17 Nov 2009 17:57:49 +0000 (+0000) Subject: move away from using helper methods on Member X-Git-Tag: V1_6_7~55 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8812484c907e46b5691dffd8279f2e5a530f09c0;p=aspectj.git move away from using helper methods on Member --- diff --git a/org.aspectj.matcher/src/org/aspectj/weaver/Shadow.java b/org.aspectj.matcher/src/org/aspectj/weaver/Shadow.java index 290c7a7fa..c8c3121db 100644 --- a/org.aspectj.matcher/src/org/aspectj/weaver/Shadow.java +++ b/org.aspectj.matcher/src/org/aspectj/weaver/Shadow.java @@ -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()); } }